uninstall unused pcks install zustand

This commit is contained in:
2023-03-04 00:42:22 +01:00
parent c3e5b151b0
commit ccf89a1cd4
3 changed files with 93 additions and 2158 deletions

2226
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,22 +3,12 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@craco/craco": "^7.0.0",
"@dnd-kit/core": "^6.0.7",
"@emotion/react": "^11.10.6",
"@ionic/cli": "^6.20.8",
"@ionic/react": "^6.5.4",
"@mantine/core": "^5.10.5",
"@mantine/dropzone": "^5.10.5",
"@mantine/form": "^5.10.3",
"@mantine/hooks": "^5.10.5",
"@mantine/modals": "^5.10.5",
"@mantine/notifications": "^5.10.5",
"@radix-ui/react-icons": "^1.1.1",
"@tabler/icons": "^2.4.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.9",
"@types/react": "^18.0.26",
@ -27,20 +17,16 @@
"bootstrap": "^5.2.3",
"env-cmd": "^10.1.0",
"feather-icons": "^4.29.0",
"ionicons": "^6.1.3",
"qr-code-styling": "^1.6.0-rc.1",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
"react-feather": "^2.0.10",
"react-hot-toast": "^2.4.0",
"react-repeatable": "^2.0.1",
"react-router-dom": "^6.4.5",
"react-scripts": "^5.0.1",
"swr": "^2.0.2",
"typescript": "^4.9.4",
"use-fit-text": "^2.4.0",
"web-vitals": "^2.1.4"
"zustand": "^4.3.5"
},
"scripts": {
"start": "react-scripts start",

View File

@ -0,0 +1,9 @@
import { create } from 'zustand'
const useNotificationStore = create((set) => ({
bears: 0,
increasePopulation: () => set((state: any) => ({ bears: state.bears + 1 })),
removeAllBears: () => set({ bears: 0 }),
}))