Archived
Notes move both ways, and prove a deleted table takes its cells with it
Two small things found reading it back: a note could be moved up but not down, and nothing exercised `remove` against the real foreign keys — a delete that strands its children fails in Postgres rather than in memory, and it's a button on the screen.
This commit is contained in:
@@ -87,6 +87,15 @@ const Notes = ({
|
||||
>
|
||||
<Icon d={ARROW_UP} />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className={iconButton}
|
||||
disabled={disabled || i === notes.length - 1}
|
||||
onClick={() => onChange(shift(notes, i, 1))}
|
||||
aria-label="Move note down"
|
||||
>
|
||||
<Icon d={ARROW_DOWN} />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className={iconButton}
|
||||
|
||||
Reference in New Issue
Block a user