-
}
- variant="outline"
- onClick={handleGetRandomNoteOnClick}
- >
- Generate list of notes
-
+
+ }
+ variant="outline"
+ onClick={() => handleChangeNumberOfNoteDisplayed(-1)}
+ disabled={numberOfNoteDisplayed === NOTES_LIST_MIN}
+ />
+
+ }
+ variant="outline"
+ onClick={() => handleChangeNumberOfNoteDisplayed(1)}
+ disabled={numberOfNoteDisplayed === NOTES_LIST_MAX}
+ />
+
}
variant="outline"
@@ -55,16 +84,6 @@ export const NotesPage = () => {