diff --git a/src/App.jsx b/src/App.jsx index 65ef91bd..e91dc1e7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -62,7 +62,7 @@ export default class App extends React.PureComponent {
- this.setState({ mainModal: true })} updateModalOpen={() => this.setState({ updateModal: true })} /> + this.setState({ mainModal: true })} updateModalOpen={() => this.setState({ updateModal: true })} language={language} /> diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index ff8ef1d2..7f1db7e7 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -5,32 +5,32 @@ import NewReleases from '@material-ui/icons/NewReleasesRounded'; import NotesIcon from '@material-ui/icons/AssignmentRounded'; import Tooltip from '@material-ui/core/Tooltip'; -const Notes = React.lazy(() => import('./widgets/Notes')); +const Notes = React.lazy(() => import('./widgets/Notes')); // the user probably won't use the notes feature every time so we lazy load const renderLoader = () =>
; export default class Navbar extends React.PureComponent { render() { - let refreshHTML = window.location.reload()} /> - const refresh = localStorage.getItem('refresh'); - if (refresh === 'false') refreshHTML = ''; + // toggle refresh button + let refreshHTML = ( + + window.location.reload()} /> + + ); + if (localStorage.getItem('refresh') === 'false') refreshHTML = null; return (
- +
-
- + -
- - {refreshHTML} - - + {refreshHTML} +
diff --git a/src/components/widgets/Notes.jsx b/src/components/widgets/Notes.jsx index e114b874..5ee950e7 100644 --- a/src/components/widgets/Notes.jsx +++ b/src/components/widgets/Notes.jsx @@ -18,9 +18,8 @@ export default class Notes extends React.PureComponent { }; pin() { - const pinned = localStorage.getItem('notesPinned'); document.getElementById('noteContainer').classList.toggle('visibilityshow'); - if (pinned === 'true') localStorage.setItem('notesPinned', false); + if (localStorage.getItem('notesPinned') === 'true') localStorage.setItem('notesPinned', false); else localStorage.setItem('notesPinned', true); } @@ -35,9 +34,9 @@ export default class Notes extends React.PureComponent {
-

Notes

+

{this.props.language.title}

- +
diff --git a/src/components/widgets/PhotoInformation.jsx b/src/components/widgets/PhotoInformation.jsx index af7ff45f..c2150792 100644 --- a/src/components/widgets/PhotoInformation.jsx +++ b/src/components/widgets/PhotoInformation.jsx @@ -12,7 +12,8 @@ export default class PhotoInformation extends React.PureComponent {

Photo By

-

Information

+ +

Information


diff --git a/src/translations/en.json b/src/translations/en.json index 1e43f965..bd6da9d4 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -131,5 +131,15 @@ "button": "Take me there" }, "sideload": "Sideload" + }, + "navbar": { + "tooltips": { + "update": "Update Patch Notes", + "refresh": "Refresh Page" + }, + "notes": { + "title": "Notes", + "placeholder": "Type here" + } } } \ No newline at end of file