-
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.
fix: all tests for the full functionality
- Loading branch information
Showing
10 changed files
with
289 additions
and
121 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ export const MEMBERS = { | |
id: 'graasp-id', | ||
name: 'graasp', | ||
email: '[email protected]', | ||
password: 'test', | ||
password: 'aPassword1', | ||
nameValid: true, | ||
emailValid: true, | ||
passwordValid: true, | ||
|
@@ -20,7 +20,7 @@ export const MEMBERS = { | |
id: 'graasp_other-id', | ||
name: 'graasp_other', | ||
email: '[email protected]', | ||
password: 'test', | ||
password: 'aPassword2', | ||
nameValid: true, | ||
emailValid: true, | ||
passwordValid: true, | ||
|
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,21 +1,29 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { GraaspLogo } from '@graasp/ui'; | ||
|
||
import { Stack, Typography, useTheme } from '@mui/material'; | ||
|
||
type DialogHeaderProps = { | ||
title: string; | ||
description?: string; | ||
description?: string | ReactNode; | ||
}; | ||
export const DialogHeader = ({ title, description }: DialogHeaderProps) => { | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<Stack direction="column" alignItems="center" spacing={1}> | ||
<Stack direction="column" alignItems="center" spacing={1} width="100%"> | ||
<GraaspLogo height={90} sx={{ fill: theme.palette.primary.main }} /> | ||
<Typography variant="h4" component="h2"> | ||
{title} | ||
</Typography> | ||
{description && <Typography pt={2}>{description}</Typography>} | ||
{description ? ( | ||
typeof description === 'string' ? ( | ||
<Typography pt={2}>{description}</Typography> | ||
) : ( | ||
description | ||
) | ||
) : null} | ||
</Stack> | ||
); | ||
}; |
Oops, something went wrong.