File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { useTranslation } from 'react-i18next' ;
3+ import SquareLogoIcon from '../../../images/p5js-square-logo.svg' ;
4+
5+ export default function FundraiserModal ( ) {
6+ const { t } = useTranslation ( ) ;
7+
8+ return (
9+ < div className = "fundraiser" >
10+ < p className = "fundraiser__description" > { t ( 'Fundraiser.Description' ) } </ p >
11+ < SquareLogoIcon
12+ className = "about__logo"
13+ role = "img"
14+ aria-label = { t ( 'Common.p5logoARIA' ) }
15+ focusable = "false"
16+ />
17+ < p className = "fundraiser__description" > { t ( 'Fundraiser.CallToAction' ) } </ p >
18+ </ div >
19+ ) ;
20+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useLocation, useParams } from 'react-router-dom';
55import Overlay from '../../App/components/Overlay' ;
66import {
77 closeKeyboardShortcutModal ,
8+ closeFundraiserModal ,
89 closePreferences ,
910 closeShareModal ,
1011 hideErrorModal
@@ -14,6 +15,7 @@ import AddToCollectionList from './AddToCollectionList';
1415import ErrorModal from './ErrorModal' ;
1516import Feedback from './Feedback' ;
1617import KeyboardShortcutModal from './KeyboardShortcutModal' ;
18+ import FundraiserModal from './FundraiserModal' ;
1719import NewFileModal from './NewFileModal' ;
1820import NewFolderModal from './NewFolderModal' ;
1921import Preferences from './Preferences' ;
@@ -33,6 +35,7 @@ export default function IDEOverlays() {
3335 uploadFileModalVisible,
3436 preferencesIsVisible,
3537 keyboardShortcutVisible,
38+ fundraiserContentVisible,
3639 shareModalVisible,
3740 shareModalProjectId,
3841 shareModalProjectName,
@@ -106,6 +109,15 @@ export default function IDEOverlays() {
106109 < KeyboardShortcutModal />
107110 </ Overlay >
108111 ) }
112+ { fundraiserContentVisible && (
113+ < Overlay
114+ title = { t ( 'Fundraiser.Title' ) }
115+ ariaLabel = { t ( 'Fundraiser.Title' ) }
116+ closeOverlay = { ( ) => dispatch ( closeFundraiserModal ( ) ) }
117+ >
118+ < FundraiserModal />
119+ </ Overlay >
120+ ) }
109121 { errorType && (
110122 < Overlay
111123 title = { t ( 'Common.Error' ) }
You can’t perform that action at this time.
0 commit comments