fix: notes copy now works and css updates

This commit is contained in:
David Ralph
2021-04-23 12:43:55 +01:00
parent 28dec3c1f9
commit 9726ea1c89
14 changed files with 52 additions and 24 deletions

View File

@@ -33,10 +33,10 @@ export default class Notes extends React.PureComponent {
}
}
// todo: fix this
copy() {
navigator.clipboard.writeText(this.state.notes);
toast(window.language.toasts.copy);
// this.state.notes doesnt work for some reason
navigator.clipboard.writeText(localStorage.getItem('notes'));
toast(window.language.toasts.notes);
}
componentDidMount() {