Skip to content

Commit 1602c00

Browse files
Rachel LimRachel Lim
Rachel Lim
authored and
Rachel Lim
committed
add mobile ver and update nav snapshot
1 parent 966f28b commit 1602c00

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import {
2323
newFile,
2424
newFolder,
2525
openPreferences,
26-
showKeyboardShortcutModal
26+
showKeyboardShortcutModal,
27+
showFundraiserModal
2728
} from '../../actions/ide';
2829
import { logoutUser } from '../../../User/actions';
2930
import { useSketchActions, useWhatPage } from '../../hooks';
@@ -434,6 +435,9 @@ const MoreMenu = () => {
434435
{t('Nav.Help.Reference')}
435436
</NavMenuItem>
436437
<NavMenuItem href="/about">{t('Nav.Help.About')}</NavMenuItem>
438+
<NavMenuItem onClick={() => dispatch(showFundraiserModal())}>
439+
{t('Nav.Fundraiser')}
440+
</NavMenuItem>
437441
</ParentMenuContext.Provider>
438442
</ul>
439443
</div>

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,13 @@ exports[`Nav renders dashboard version for mobile 1`] = `
457457
About
458458
</a>
459459
</li>
460+
<li
461+
class="nav__dropdown-item"
462+
>
463+
<button>
464+
Support p5.js and the Processing Foundation!
465+
</button>
466+
</li>
460467
</ul>
461468
</div>
462469
</div>
@@ -1091,6 +1098,13 @@ exports[`Nav renders editor version for mobile 1`] = `
10911098
About
10921099
</a>
10931100
</li>
1101+
<li
1102+
class="nav__dropdown-item"
1103+
>
1104+
<button>
1105+
Support p5.js and the Processing Foundation!
1106+
</button>
1107+
</li>
10941108
</ul>
10951109
</div>
10961110
</div>

client/styles/components/_fundraiser.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
padding: #{20 / $base-font-size}rem;
33
margin-right: #{20 / $base-font-size}rem;
44
padding-bottom: #{40 / $base-font-size}rem;
5-
width: #{525 / $base-font-size}rem;
5+
width: #{500 / $base-font-size}rem;
66
text-align: center;
77
overflow-y: auto;
88
}

0 commit comments

Comments
 (0)