Make the sidebar collapsable (#260)

* Make the sidebar collapsable

* Fix padding

* Automatically collapase sidebar and hide container on mobile

* Hide navbar content when navbar is collapsed

* Update naming convention for states
This commit is contained in:
Félix Malfait
2023-06-09 15:09:21 +02:00
committed by GitHub
parent 1d6f1f4551
commit f6e1e626fd
18 changed files with 163 additions and 48 deletions

View File

@ -1,6 +1,6 @@
import { atom } from 'recoil';
export const isSomeInputInEditModeState = atom<boolean>({
key: 'ui/table/is-in-edit-mode',
key: 'isSomeInputInEditModeState',
default: false,
});

View File

@ -2,6 +2,6 @@ import { RowSelectionState } from '@tanstack/react-table';
import { atom } from 'recoil';
export const currentRowSelectionState = atom<RowSelectionState>({
key: 'ui/table-row-selection-state',
key: 'currentRowSelectionState',
default: {},
});

View File

@ -3,7 +3,7 @@ import { selector } from 'recoil';
import { currentRowSelectionState } from './rowSelectionState';
export const selectedRowIdsState = selector<string[]>({
key: 'ui/table-selected-row-ids',
key: 'selectedRowIdsState',
get: ({ get }) => {
const currentRowSelection = get(currentRowSelectionState);