- moved states

This commit is contained in:
brendanlaschke
2023-08-14 22:12:29 +02:00
parent 39bbe02c86
commit a7f4326419
15 changed files with 33 additions and 15 deletions

View File

@ -1,7 +0,0 @@
import { ReactElement } from 'react';
import { atom } from 'recoil';
export const actionBarEntriesState = atom<ReactElement[]>({
key: 'actionBarEntriesState',
default: [],
});

View File

@ -1,6 +0,0 @@
import { atom } from 'recoil';
export const actionBarOpenState = atom<boolean>({
key: 'actionBarOpenState',
default: false,
});

View File

@ -1,7 +0,0 @@
import { ReactElement } from 'react';
import { atom } from 'recoil';
export const contextMenuEntriesState = atom<ReactElement[]>({
key: 'contextMenuEntriesState',
default: [],
});

View File

@ -1,6 +0,0 @@
import { atom } from 'recoil';
export const contextMenuOpenState = atom<boolean>({
key: 'contextMenuOpenState',
default: false,
});

View File

@ -1,11 +0,0 @@
import { atom } from 'recoil';
import { PositionType } from '@/ui/context-menu/types/PositionType';
export const contextMenuPositionState = atom<PositionType>({
key: 'contextMenuPositionState',
default: {
x: null,
y: null,
},
});