-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8bbba
commit ff930b8
Showing
8 changed files
with
202 additions
and
51 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,36 @@ | ||
import { BoxCentered, Button, Link } from "@fuel-ui/react"; | ||
import { cssObj } from "@fuel-ui/css"; | ||
import { buttonStyle } from "../../constants"; | ||
|
||
interface NoFundsMessageProps { | ||
onRecheck: () => void; | ||
} | ||
|
||
export function NoFundsMessage({ onRecheck }: NoFundsMessageProps) { | ||
return ( | ||
<BoxCentered css={styles.container}> | ||
You need some ETH to play: | ||
<Link isExternal href={`https://app.fuel.network/bridge`}> | ||
<Button css={styles.link} variant="link"> | ||
Go to Bridge | ||
</Button> | ||
</Link> | ||
<Button css={buttonStyle} onPress={onRecheck}> | ||
Recheck balance | ||
</Button> | ||
</BoxCentered> | ||
); | ||
} | ||
|
||
const styles = { | ||
container: cssObj({ | ||
flexDirection: "column", | ||
fontFamily: "pressStart2P", | ||
fontSize: "14px", | ||
gap: "20px", | ||
}), | ||
link: cssObj({ | ||
fontFamily: "pressStart2P", | ||
fontSize: "14px", | ||
}), | ||
}; |
Oops, something went wrong.