forked from podkrepi-bg/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create a protected route for campaign applications (Epic podkre…
…pi-bg#1842) (podkrepi-bg#1855) * create a protected route for campaign applications * fix: self-closing tag linter error
- Loading branch information
1 parent
02df23b
commit a927b2f
Showing
3 changed files
with
17 additions
and
0 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
5 changes: 5 additions & 0 deletions
5
src/components/client/campaign-application/CampaignApplicationPage.tsx
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Layout from '../layout/Layout' | ||
|
||
export default function CampaignApplicationPage() { | ||
return <Layout /> | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { GetServerSideProps } from 'next' | ||
import { securedPropsWithTranslation } from 'middleware/auth/securedProps' | ||
import { routes } from 'common/routes' | ||
import CampaignApplicationPage from 'components/client/campaign-application/CampaignApplicationPage' | ||
|
||
export const getServerSideProps: GetServerSideProps = securedPropsWithTranslation( | ||
['common', 'auth', 'validation', 'campaigns'], | ||
routes.campaigns.application, | ||
) | ||
|
||
export default CampaignApplicationPage |