-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
6 changed files
with
157 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
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
19 changes: 19 additions & 0 deletions
19
apps/extension/src/pages/home/components/notification-card.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,19 @@ | ||
import React, { FC } from "react"; | ||
import styles from "./style.module.scss"; | ||
import { observer } from "mobx-react-lite"; | ||
import colors from "theme/colors"; | ||
|
||
export const NotificationCard: FC<{}> = observer(({}) => { | ||
return ( | ||
<div className={styles.containerInfoAccountCard} style={{ marginTop: 16 }}> | ||
<div | ||
style={{ | ||
color: colors["neutral-text-body"] | ||
}} | ||
> | ||
🎈 Exciting news! A major update is on the way, bringing fresh features, | ||
improvements, and more. Stay tuned—things are about to get even better! | ||
</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
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,57 @@ | ||
import React, { FC, ReactNode } from "react"; | ||
import { observer } from "mobx-react-lite"; | ||
import styles from "./style.module.scss"; | ||
import { HeaderModal } from "../components/header-modal"; | ||
import SlidingPane from "react-sliding-pane"; | ||
import { formatAddress, getFavicon } from "@owallet/common"; | ||
import classnames from "classnames"; | ||
import { Button } from "components/common/button"; | ||
import style from "pages/sign/style.module.scss"; | ||
import { toast } from "react-toastify"; | ||
|
||
export const ModalNoti: FC<{ | ||
isOpen: boolean; | ||
onRequestClose: () => void; | ||
content: ReactNode; | ||
onSubmit: any; | ||
}> = observer(({ isOpen, onRequestClose, content, onSubmit }) => { | ||
return ( | ||
<SlidingPane | ||
isOpen={isOpen} | ||
from="bottom" | ||
width="100vw" | ||
onRequestClose={onRequestClose} | ||
hideHeader={true} | ||
className={classnames(styles.modalNetwork, styles.modalConfirm)} | ||
> | ||
<div> | ||
<HeaderModal title={"News"} onRequestClose={onRequestClose} /> | ||
{content ? content : null} | ||
<div | ||
style={{ | ||
flexDirection: "row", | ||
display: "flex", | ||
paddingTop: 16 | ||
}} | ||
> | ||
<Button | ||
containerStyle={{ marginRight: 8 }} | ||
className={classnames(style.button, style.rejectBtn)} | ||
color={"reject"} | ||
onClick={onRequestClose} | ||
> | ||
Close | ||
</Button> | ||
<Button | ||
className={classnames(style.button, style.approveBtn)} | ||
// data-loading={signInteractionStore.isLoading} | ||
// loading={signInteractionStore.isLoading} | ||
onClick={onSubmit} | ||
> | ||
Confirmed | ||
</Button> | ||
</div> | ||
</div> | ||
</SlidingPane> | ||
); | ||
}); |
Oops, something went wrong.