Skip to content

Commit 70550c8

Browse files
committed
feat: fix for home grid
1 parent c70a9bb commit 70550c8

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

client/src/components/Home/HomeGrid/HomeGrid.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const HomeGrid = (): ReactElement => {
4646
(isPatronMode && !showHelpVideos && (isLargeDesktop || isTablet));
4747

4848
return (
49-
<Grid dataTest={dataTestRoot} isFourInARowEnabled={false}>
49+
<Grid dataTest={dataTestRoot} isFourInARowEnabled={!isInMigrationMode}>
5050
{isInMigrationMode && <HomeGridAllocate className={cx(styles.gridTile, styles.isHigher)} />}
5151
{!isProjectAdminMode && !isInMigrationMode && (
5252
<HomeGridCurrentGlmLock className={styles.gridTile} />
@@ -76,12 +76,12 @@ const HomeGrid = (): ReactElement => {
7676
)}
7777
/>
7878
)}
79-
{showDivider2 && (
80-
<HomeGridDivider className={styles.divider2} dataTest={`${dataTestRoot}__divider--2`} />
81-
)}
8279
{!isProjectAdminMode && !isPatronMode && (
8380
<HomeGridDonations className={styles.gridTile} />
8481
)}
82+
{showDivider2 && (
83+
<HomeGridDivider className={styles.divider2} dataTest={`${dataTestRoot}__divider--2`} />
84+
)}
8585
<HomeGridTransactions
8686
className={cx(
8787
styles.gridTile,

client/src/components/shared/Layout/LayoutTopBar/LayoutTopBar.module.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,16 @@
142142

143143
.buttonWalletArrow {
144144
margin: 1.1rem;
145-
path {
146-
stroke: $color-black;
145+
146+
&.isInMigrationMode {
147+
path {
148+
stroke: $color-black;
149+
}
150+
}
151+
&:not(.isInMigrationMode) {
152+
path {
153+
stroke: $color-white;
154+
}
147155
}
148156
}
149157

client/src/components/shared/Layout/LayoutTopBar/LayoutTopBar.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,15 @@ const LayoutTopBar: FC<LayoutTopBarProps> = ({ className }) => {
269269
onClick={() =>
270270
isConnected ? setIsWalletModalOpen(true) : setIsConnectWalletModalOpen(true)
271271
}
272-
variant="secondary"
272+
variant={isInMigrationMode ? 'secondary' : 'cta'}
273273
>
274274
{buttonWalletText}
275275
{isConnected && (
276-
<Svg classNameSvg={styles.buttonWalletArrow} img={chevronBottom} size={1} />
276+
<Svg
277+
classNameSvg={cx(styles.buttonWalletArrow, isInMigrationMode && styles.isInMigrationMode)}
278+
img={chevronBottom}
279+
size={1}
280+
/>
277281
)}
278282
</Button>
279283
</div>

0 commit comments

Comments
 (0)