Skip to content

Commit

Permalink
add solana banner
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Dec 18, 2023
1 parent 5c39519 commit c73c1e0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/connect/src/components/atoms/NewsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function NewsBar({ messages }: NewsBarProps) {
message && (
<Bar background={message.background}>
{message.content}
<NewBarButton button={message.button} />
{message.button && (<NewBarButton button={message.button} />)}
</Bar>
)
);
Expand Down
26 changes: 25 additions & 1 deletion apps/connect/src/configs/messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Typography from "@mui/material/Typography";

export type Message = {
background: string;
button: {
button?: {
href: string;
label?: string;
background: string;
Expand Down Expand Up @@ -70,6 +70,30 @@ const messages: Record<string, Message> = {
</>
),
start: new Date(2023, 9, 20), // any date in the past would be fine
ends: new Date(2023, 10, 6),
},
solana: {
background:
"yellow;",
content: (
<>
<Typography
variant="body1"
style={{
color: "#070528",
fontSize: "16px",
fontFamily: "Poppins",
fontWeight: "700",
lineHeight: "20.02px",
letterSpacing: "0.28px",
wordWrap: "break-word",
}}
>
There are currently delays in relaying to Solana. Please use manual relaying if you need your transfer completed quickly.
</Typography>
</>
),
start: new Date(2023, 11, 17), // any date in the past would be fine
},
};

Expand Down

0 comments on commit c73c1e0

Please sign in to comment.