Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 24, 2024
1 parent 986ba07 commit b05f47c
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/Whitelist/TimechainBanner/index.tsx
Original file line number Diff line number Diff line change
@@ -46,11 +46,11 @@ const TimechainBanner = React.memo(({ setTabIndex }: IProps) => {
const { width } = useElementSize({ elementID: 'ALLOW_TASKS_LIST' });

React.useEffect(() => {
const element = document.getElementById('TIME_CHAIN_BANNER');
if (element) {
element.style.maxWidth = `${width}px`;
element.style.width = "100%"
}
// const element = document.getElementById('TIME_CHAIN_BANNER');
// if (element) {
// element.style.maxWidth = `${width}px`;
// element.style.width = "100%"
// }
}, [width])

if (isEnd || raffleCode || !show) return;
1 change: 1 addition & 0 deletions src/modules/Whitelist/TimechainBanner/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
z-index: 20;
max-width: 560px !important;
width: 100%;
background-image: url('https://storage.googleapis.com/tc-cdn-prod/nbc/icons/bvm-icons/bg-timechain.jpg');
padding: 16px;
.content {

0 comments on commit b05f47c

Please sign in to comment.