Skip to content

Commit

Permalink
Add caution message
Browse files Browse the repository at this point in the history
  • Loading branch information
tmedetbekov committed Jan 5, 2024
1 parent ce469fc commit 55e8c9a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/images/icon/caution.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/components/Banner/Banner.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import Container from '../Container'
import GetWalletActions from '../GetWallet/GetWalletActions'
import Icon from '../Icon'

import './Banner.scss'

function Banner() {
return (
<Container clipped={false}>
<div className="Banner">
<div className="Caution">
<Icon name="caution" />
<span className="ms-2">
Beware: Scammers are currently using the name Unstoppable Wallet on Telegram
</span>
</div>
<img className="Banner-img-gradient Banner-img-gradient-top" src="/images/banner/gradient-main.svg" alt="" />
<div className="Banner-start">
<img
Expand Down
9 changes: 9 additions & 0 deletions src/components/Banner/Banner.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
@import "../../scss/utils";

.Caution {
width: 100%;
display: flex;
justify-content: center;
position: absolute;
text-align: center;
color: $red
}

.Banner {
display: flex;
margin-top: 80px;
Expand Down
2 changes: 2 additions & 0 deletions src/components/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const iconComponent = name => {
return image('/images/icon/arrow-down.svg')
case 'arrow-up':
return image('/images/icon/arrow-up.svg')
case 'caution':
return image('/images/icon/caution.svg')

// Buttons
case 'google-play':
Expand Down

1 comment on commit 55e8c9a

@Ngocanhdndn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.