-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/nav access campaign links (#82)
* Fix selected campaign picking with hook * Fix scroll tableau + Comapgnie Admind Listing candidatures fix * Add nav links
- Loading branch information
Showing
19 changed files
with
175 additions
and
77 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
25 changes: 17 additions & 8 deletions
25
web/components/Account/Application/Company/ApplicationsHelpers/ApplicationCompanyHelper.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
36 changes: 36 additions & 0 deletions
36
web/components/Account/Application/Company/ApplicationsHelpers/FullApplications.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,36 @@ | ||
import { Box, Stack, Text } from '@chakra-ui/react' | ||
import { useTranslation } from 'next-i18next' | ||
import useCampaignContext from '~components/Campaign/useCampaignContext' | ||
import { format } from '~utils/date' | ||
|
||
const FullApplications = ({ numApplications }: { numApplications: number }) => { | ||
const { currentCampaign } = useCampaignContext() | ||
const { t } = useTranslation('application') | ||
|
||
return ( | ||
<Box paddingY={6}> | ||
<Stack | ||
backgroundColor="grayBackground" | ||
direction={{ base: 'column', md: 'row' }} | ||
p={2} | ||
borderRadius="4px" | ||
justifyContent="space-between" | ||
alignItems={{ base: 'flex-start', md: 'center' }} | ||
spacing={2} | ||
> | ||
<Box> | ||
<Text as="span" fontWeight="bold"> | ||
{t(`company.helper.full_start${numApplications > 1 ? 's' : ''}`)} | ||
</Text> | ||
<Text as="span" pl={1}> | ||
{t('company.helper.full_end', { | ||
date: format(currentCampaign.preselection_end), | ||
})} | ||
</Text> | ||
</Box> | ||
</Stack> | ||
</Box> | ||
) | ||
} | ||
|
||
export default FullApplications |
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
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
9 changes: 2 additions & 7 deletions
9
web/components/Account/Application/Place/ApplicationsHelpers/ApplicationPlaceHelper.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
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
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
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
Oops, something went wrong.