forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace useContext with Recoil state
- Loading branch information
1 parent
3db6985
commit ecfe15a
Showing
5 changed files
with
64 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
.../twenty-front/src/modules/object-record/record-table/contexts/RecordTableScrollContext.ts
This file was deleted.
Oops, something went wrong.
33 changes: 17 additions & 16 deletions
33
...-record/record-table/record-table-header/components/RecordTableColumnHeadWithDropdown.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...front/src/modules/object-record/record-table/states/isScrollEnabledForRecordTableState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { createState } from 'twenty-ui'; | ||
type isScrollEnabledForRecordTableStateType = { | ||
enableXScroll: boolean; | ||
enableYScroll: boolean; | ||
}; | ||
export const isScrollEnabledForRecordTableState = | ||
createState<isScrollEnabledForRecordTableStateType>({ | ||
key: 'isScrollEnabledForRecordTableState', | ||
defaultValue: { | ||
enableXScroll: true, | ||
enableYScroll: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters