Skip to content

Commit

Permalink
chore: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 19, 2024
1 parent c02fc2c commit 95b58c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/modules/Whitelist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const Whitelist = () => {
}
}, [height]);

React.useEffect(() => {
const leaderBoard = document.getElementById(LEADER_BOARD_ID);
const stepper = document.getElementById(STEP_ID);
if (stepper && stepHeight && leaderBoard) {
leaderBoard.style.maxHeight = `${stepHeight}px`;
}
}, [stepHeight]);
// React.useEffect(() => {
// const leaderBoard = document.getElementById(LEADER_BOARD_ID);
// const stepper = document.getElementById(STEP_ID);
// if (stepper && stepHeight && leaderBoard) {
// leaderBoard.style.maxHeight = `${stepHeight}px`;
// }
// }, [stepHeight]);

return (
<BoxContent className={s.container} id={CONTAINER_ID}>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Whitelist/leaderBoard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ const LeaderBoard = () => {
}

return (
<Box className={styles.container} minH="820px" id={LEADER_BOARD_ID}>
<Box className={styles.container} height="85dvh" id={LEADER_BOARD_ID}>
<ScrollWrapper
onFetch={() => {
refParams.current = {
Expand Down

0 comments on commit 95b58c2

Please sign in to comment.