generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default to builder when user is already authenticated (#763)
* fix: default to builder when user is already authenticated * fix: translation for analytics select an item * fix: test expectation * fix: another test expectation * fix: selector in test
- Loading branch information
Showing
14 changed files
with
64 additions
and
53 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
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
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 was deleted.
Oops, something went wrong.
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,22 +1,47 @@ | ||
import { Stack } from '@mui/material'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import { Box, Stack, Typography } from '@mui/material'; | ||
|
||
import { createFileRoute } from '@tanstack/react-router'; | ||
import { ChartNoAxesCombinedIcon } from 'lucide-react'; | ||
|
||
import { HomeMessage } from '~analytics/HomeMessage'; | ||
import { ButtonLink } from '@/components/ui/ButtonLink'; | ||
import { NS } from '@/config/constants'; | ||
|
||
export const Route = createFileRoute('/analytics/')({ | ||
component: RouteComponent, | ||
}); | ||
|
||
function RouteComponent() { | ||
const { t } = useTranslation(NS.Analytics, { keyPrefix: 'HOME' }); | ||
return ( | ||
<Stack | ||
width="100%" | ||
alignItems="center" | ||
justifyContent="center" | ||
height="100vh" | ||
> | ||
<HomeMessage /> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
flexGrow={1} | ||
justifyContent="center" | ||
alignItems="center" | ||
> | ||
<Stack | ||
direction="row" | ||
justifyContent="center" | ||
alignItems="center" | ||
gap={6} | ||
p={6} | ||
> | ||
<ChartNoAxesCombinedIcon size={100} /> | ||
<Typography variant="h4" textAlign="center"> | ||
{t('NO_ITEM_SELECTED')} | ||
</Typography> | ||
</Stack> | ||
<ButtonLink to="/account">{t('SELECT_AN_ITEM')}</ButtonLink> | ||
</Box> | ||
</Stack> | ||
); | ||
} |
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