-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move durability warning out of main App view
- Loading branch information
Showing
6 changed files
with
98 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Alert, GapPatterns, Stack } from "@namada/components"; | ||
import { PageHeader } from "App/Common"; | ||
import clsx from "clsx"; | ||
|
||
type Props = { | ||
warnings?: string[]; | ||
}; | ||
|
||
export const Warnings = ({ warnings }: Props): JSX.Element => { | ||
return ( | ||
<Stack gap={GapPatterns.TitleContent} full> | ||
<PageHeader title="Warnings" /> | ||
<Stack className="justify-top" full gap={GapPatterns.FormFields}> | ||
{warnings && | ||
warnings.map((warning, i) => ( | ||
<Alert key={i} type="warning" className={clsx("max-w-84")}> | ||
{warning} | ||
</Alert> | ||
))} | ||
</Stack> | ||
</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