-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning banner on Transactions page (#308)
- Loading branch information
1 parent
2ecfc08
commit e10142e
Showing
3 changed files
with
19 additions
and
0 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
16 changes: 16 additions & 0 deletions
16
apps/bridge/src/components/WarningBanner/WarningBanner.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,16 @@ | ||
import Image from 'next/image'; | ||
|
||
type BannerContainerProps = { | ||
content: string; | ||
}; | ||
|
||
export function WarningBanner({ content }: BannerContainerProps) { | ||
return ( | ||
<div className="flex-col border-t border-sidebar-border bg-[#0A0B0D] px-0 font-sans text-white "> | ||
<div className="flex items-center bg-warning-banner-red p-3"> | ||
<Image alt="tooltip" src="/icons/alert.svg" width={16} height={16} /> | ||
<span className="ml-2">{content}</span> | ||
</div> | ||
</div> | ||
); | ||
} |
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