File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
newFile ,
25
25
newFolder ,
26
26
showKeyboardShortcutModal ,
27
+ showFundraiserModal ,
27
28
startSketch ,
28
29
stopSketch
29
30
} from '../../actions/ide' ;
@@ -37,6 +38,7 @@ const Nav = ({ layout }) => (
37
38
matches ? (
38
39
< NavBar >
39
40
< LeftLayout layout = { layout } />
41
+ < FundraiserSection />
40
42
< UserMenu />
41
43
</ NavBar >
42
44
) : (
@@ -85,6 +87,23 @@ const UserMenu = () => {
85
87
return null ;
86
88
} ;
87
89
90
+ const FundraiserSection = ( ) => {
91
+ const dispatch = useDispatch ( ) ;
92
+
93
+ return (
94
+ < >
95
+ < button
96
+ className = "nav__fundraiser-btn"
97
+ onClick = { ( ) => dispatch ( showFundraiserModal ( ) ) }
98
+ aria-label = "2023-fundraiser-button"
99
+ title = "2023 Fundraiser Button"
100
+ >
101
+ Celebrate a Decade of Code and Support p5.js!
102
+ </ button >
103
+ </ >
104
+ ) ;
105
+ } ;
106
+
88
107
const DashboardMenu = ( ) => {
89
108
const { t } = useTranslation ( ) ;
90
109
const editorLink = useSelector ( selectSketchPath ) ;
You can’t perform that action at this time.
0 commit comments