-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from euanwm/feature/optimised_events_page
optimised events page
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import ShowEvent from '@/components/organisms/eventPage' | ||
|
||
function Event() { | ||
return <ShowEvent /> | ||
function Event(props: EventParams) { | ||
return <ShowEvent {...props} /> | ||
} | ||
|
||
export interface EventParams { | ||
[key: string]: string | ||
} | ||
|
||
export async function getServerSideProps(context: { query: EventParams }) { | ||
const query = context.query | ||
return { props: { query } } | ||
} | ||
|
||
export default Event |