-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(attributions): add attributions to menu (#643)
* feat(attributions): add attributions to menu * feat(attribution): use only one useState * refactor(attribution): change default value
- Loading branch information
1 parent
834a4bd
commit 6b38c67
Showing
9 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/scripts/components/main/attributions/attributions.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@require '../../../../variables.styl' | ||
|
||
.attributions | ||
display: flex | ||
flex-direction: column | ||
justify-content: center | ||
width: 50% | ||
color: $textDefault | ||
font-family: NotesEsa | ||
|
||
h1 | ||
display: flex | ||
justify-content: space-between | ||
color: $textDefault | ||
|
||
a | ||
color: $textColor | ||
text-decoration: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, {FunctionComponent} from 'react'; | ||
import {useIntl} from 'react-intl'; | ||
import ReactMarkdown from 'react-markdown'; | ||
|
||
import styles from './attributions.styl'; | ||
|
||
const Attributions: FunctionComponent = () => { | ||
const intl = useIntl(); | ||
|
||
return ( | ||
<div className={styles.attributions}> | ||
<ReactMarkdown | ||
source={intl.formatMessage({id: 'attributionDescription'})} | ||
linkTarget="_blank" | ||
allowedTypes={[ | ||
'heading', | ||
'text', | ||
'paragraph', | ||
'break', | ||
'strong', | ||
'emphasis', | ||
'image', | ||
'imageReference', | ||
'list', | ||
'listItem', | ||
'link' | ||
]} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Attributions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters