Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(attributions): add attributions to menu #643

Merged
merged 5 commits into from
Sep 22, 2020
Merged

Conversation

KatvonRivia
Copy link
Member

No description provided.


import styles from './menu.styl';

const Menu: FunctionComponent = () => {
const [showOverlay, setShowOverlay] = useState(false);
const [overlayContentType, setOverlayContentType] = useState('');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One variable should be enough here like

const [overlayType, setOverlayType] = ...
setOverlayType('about')
setOverlayType('attributions')
setOverlayType(null) // to hide the overlay

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh true 🙈 thanks!

@@ -20,21 +20,16 @@ import Attributions from '../attributions/attributions';
import styles from './menu.styl';

const Menu: FunctionComponent = () => {
const [showOverlay, setShowOverlay] = useState(false);
const [overlayContentType, setOverlayContentType] = useState('');
const [overlayType, setOverlayType] = useState<string | null>('');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default value should be null not ''

@KatvonRivia KatvonRivia merged commit 6b38c67 into develop Sep 22, 2020
@KatvonRivia KatvonRivia deleted the feat/attribution branch September 22, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants