-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2275 from ChainSafe/dev
Deploy: blacklisted banner, API keys
- Loading branch information
Showing
13 changed files
with
143 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
packages/storage-ui/src/Components/Elements/BlacklistedModeBanner.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,48 @@ | ||
import { Typography, Button } from "@chainsafe/common-components" | ||
import { createStyles, makeStyles, useThemeSwitcher } from "@chainsafe/common-theme" | ||
import { Trans } from "@lingui/macro" | ||
import React from "react" | ||
import { CSSTheme } from "../../Themes/types" | ||
import { ROUTE_LINKS } from "../StorageRoutes" | ||
|
||
const useStyles = makeStyles( | ||
({ breakpoints, constants, palette }: CSSTheme) => { | ||
return createStyles({ | ||
accountRestrictedNotification: { | ||
position: "fixed", | ||
bottom: 0, | ||
backgroundColor: palette.additional["gray"][10], | ||
color: palette.additional["gray"][1], | ||
padding: `${constants.generalUnit * 2}px ${constants.generalUnit * 3}px`, | ||
left: 0, | ||
width: "100vw", | ||
[breakpoints.up("md")]: { | ||
left: `${constants.navWidth}px`, | ||
width:`calc(100vw - ${constants.navWidth}px)`, | ||
display: "flex", | ||
justifyContent: "space-between", | ||
alignItems: "center" | ||
} | ||
} | ||
}) | ||
} | ||
) | ||
|
||
const BlacklistedModeBanner = () => { | ||
const classes = useStyles() | ||
const { desktop } = useThemeSwitcher() | ||
|
||
return ( | ||
<div className={classes.accountRestrictedNotification}> | ||
<Typography variant={desktop ? "body1" : "body2"}> | ||
<Trans>Your account has been blacklisted due to unusual activity</Trans> | ||
</Typography> | ||
<Button | ||
onClick={() => window.open(ROUTE_LINKS.DiscordInvite, "_blank")} | ||
fullsize={!desktop}> | ||
<Trans>Discord support</Trans> | ||
</Button> | ||
</div>) | ||
} | ||
|
||
export default BlacklistedModeBanner |
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
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
Oops, something went wrong.