diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-04-13 22:31:47 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-04-13 22:49:24 +0200 |
| commit | 50235bc304db2e309d2de63452f301139fc3f9cc (patch) | |
| tree | 1453b045888657bece5f5de74e580834858e9e29 /components/NoteView.js | |
| parent | 1cb36cd073252f4a185cd9775382da4c6861a8cb (diff) | |
| download | remarques-50235bc304db2e309d2de63452f301139fc3f9cc.tar.gz remarques-50235bc304db2e309d2de63452f301139fc3f9cc.tar.zst remarques-50235bc304db2e309d2de63452f301139fc3f9cc.zip | |
Fix bug in Options.js
Add License
Add node version
Diffstat (limited to 'components/NoteView.js')
| -rw-r--r-- | components/NoteView.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/NoteView.js b/components/NoteView.js index 820eaf9..762ac2b 100644 --- a/components/NoteView.js +++ b/components/NoteView.js @@ -53,7 +53,7 @@ export default class NoteView extends React.Component { if (!nk) notesKeys = [0]; else notesKeys = JSON.parse(nk); const key = this.state.isNew ? Math.max(...notesKeys) + 1 : this.state.note.key; const date = Date.now(); - const colors = ["darkred", "darkblue", "darkcyan", "darkgreen"] + const colors = ["#49d96c", "#f5ac58", "pink", "darkcyan"] const color = this.state.isNew ? colors[Math.floor(Math.random() * colors.length)] : this.state.note.color if (this.state.isNew) notesKeys.push(key); |
