-
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.
Formatted exceptions are shown in eligibility and study-consent pages
- Loading branch information
1 parent
74cb53e
commit 08064c2
Showing
4 changed files
with
144 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import {CardTitle, MarginCard} from "../styled"; | ||
import {FC, PropsWithChildren} from "react"; | ||
import { FC, PropsWithChildren } from "react" | ||
|
||
type FormattedExceptionProps = PropsWithChildren<{tileText: string}> | ||
import { CardTitle, MarginCard } from "../styled" | ||
|
||
const FormattedException: FC<FormattedExceptionProps> = ({tileText, children}) => { | ||
return ( | ||
<> | ||
<MarginCard> | ||
<CardTitle>{tileText}</CardTitle> | ||
{children} | ||
</MarginCard> | ||
</> | ||
) | ||
type FormattedExceptionProps = PropsWithChildren<{ tileText: string }> | ||
|
||
const FormattedException: FC<FormattedExceptionProps> = ({ | ||
tileText, | ||
children, | ||
}) => { | ||
return ( | ||
<> | ||
<MarginCard> | ||
<CardTitle>{tileText}</CardTitle> | ||
{children} | ||
</MarginCard> | ||
</> | ||
) | ||
} | ||
|
||
export default FormattedException; | ||
export default FormattedException |