Skip to content

Commit

Permalink
url change
Browse files Browse the repository at this point in the history
  • Loading branch information
piggydoughnut committed Mar 12, 2024
1 parent 2c3a4e6 commit 0d4b6d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/modules/events/client/components/EventBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const EventBadge: React.FC<Props> = ({
withApplyButton = false,
requiresAction = false,
}) => {
const url = React.useMemo(() => `/events/${event.id}`, [event])
const url = React.useMemo(() => `/event/${event.id}`, [event])
const now = dayjs()
const [startDate, endDate] = [event.startDate, event.endDate].map(dayjs)
const isToday = now >= startDate && now <= endDate
Expand Down
6 changes: 3 additions & 3 deletions src/modules/events/client/components/EventPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const EventPage = () => {
<LoginButton
size="small"
label="Sign in"
callbackPath={`/events/${eventId}`}
callbackPath={`/event/${eventId}`}
/>
</>
) : null}
Expand Down Expand Up @@ -386,7 +386,7 @@ export const EventPage = () => {
size="small"
label="Sign in to apply for the event"
className="w-full h-full"
callbackPath={`/events/${eventId}`}
callbackPath={`/event/${eventId}`}
/>
)}
{providers.includes('polkadot') && (
Expand All @@ -398,7 +398,7 @@ export const EventPage = () => {
className="bg-black hover:opacity-80 hover:bg-black w-full"
provider="polkadot"
currentState={'Login'}
callbackPath={`/events/${eventId}`}
callbackPath={`/event/${eventId}`}
/>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/hub-map/server/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const formatEvent = (
applicationStatus: EventApplicationStatus,
complete: boolean
) => {
const url = `/events/${event.id}`
const url = `/event/${event.id}`
const now = dayjs()
const start = dayjs(event.startDate)
const end = dayjs(event.endDate)
Expand Down

0 comments on commit 0d4b6d7

Please sign in to comment.