-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
always show phase2 modal and banner (#541)
- Loading branch information
Showing
3 changed files
with
43 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Text } from "@babylonlabs-io/bbn-core-ui"; | ||
import { useState } from "react"; | ||
import { IoMdClose } from "react-icons/io"; | ||
import { PiWarningOctagonFill } from "react-icons/pi"; | ||
|
||
interface Props {} | ||
|
||
export const Banner = ({}: Props) => { | ||
const [show, setShow] = useState(true); | ||
|
||
if (!show) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className="flex flex-row gap-2 px-4 py-3 bg-[#D5FCE8] text-primary-main items-center justify-between"> | ||
<div className="flex flex-row gap-2 items-center"> | ||
<PiWarningOctagonFill /> | ||
<Text variant="body1"> | ||
Phase 2 is here! The second phase of Babylon mainnet has been | ||
launched. | ||
<a className="text-secondary-main"> Learn more</a> | ||
</Text> | ||
</div> | ||
<button | ||
className="border border-primary-light rounded-sm text-primary-light" | ||
onClick={() => setShow(false)} | ||
> | ||
<IoMdClose size={24} /> | ||
</button> | ||
</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
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