From 50235bc304db2e309d2de63452f301139fc3f9cc Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Thu, 13 Apr 2023 22:31:47 +0200 Subject: Change colors Fix bug in Options.js Add License Add node version --- components/NoteView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/NoteView.js') 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); -- cgit v1.3.1