Skip to content

Commit

Permalink
Fix dependency upgrade issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Dec 21, 2023
1 parent 7317c14 commit f6d017b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/humanize-duration": "^3.27.3",
"@types/lodash-es": "^4.17.12",
"@types/md5": "^2.3.5",
"@types/react": "18.2.45",
"@types/react": "18.2.18",
"@types/react-color": "^3.0.10",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.2.18",
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/MultiBotChatPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ConversationPanel from '../components/Chat/ConversationPanel'

const DEFAULT_BOTS: BotId[] = Object.keys(CHATBOTS).slice(0, 6) as BotId[]

const layoutAtom = atomWithStorage<Layout>('multiPanelLayout', 2, undefined, { unstable_getOnInit: true })
const layoutAtom = atomWithStorage<Layout>('multiPanelLayout', 2, undefined, { getOnInit: true })
const twoPanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:2', DEFAULT_BOTS.slice(0, 2))
const threePanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:3', DEFAULT_BOTS.slice(0, 3))
const fourPanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:4', DEFAULT_BOTS.slice(0, 4))
Expand Down
4 changes: 2 additions & 2 deletions src/app/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export const chatFamily = atomFamily(
(a, b) => a.botId === b.botId && a.page === b.page,
)

export const licenseKeyAtom = atomWithStorage('licenseKey', '', undefined, { unstable_getOnInit: true })
export const sidebarCollapsedAtom = atomWithStorage('sidebarCollapsed', false, undefined, { unstable_getOnInit: true })
export const licenseKeyAtom = atomWithStorage('licenseKey', '', undefined, { getOnInit: true })
export const sidebarCollapsedAtom = atomWithStorage('sidebarCollapsed', false, undefined, { getOnInit: true })
export const themeColorAtom = atomWithStorage('themeColor', getDefaultThemeColor())
export const followArcThemeAtom = atomWithStorage('followArcTheme', false)
export const sidePanelBotAtom = atomWithStorage<BotId>('sidePanelBot', 'chatgpt')
Expand Down
15 changes: 2 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:*":
"@types/react@npm:*, @types/react@npm:18.2.18":
version: 18.2.18
resolution: "@types/react@npm:18.2.18"
dependencies:
Expand All @@ -1830,17 +1830,6 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:18.2.45":
version: 18.2.45
resolution: "@types/react@npm:18.2.45"
dependencies:
"@types/prop-types": "npm:*"
"@types/scheduler": "npm:*"
csstype: "npm:^3.0.2"
checksum: 4cc650c47ffb88baac29fb7a74e842e4af4a55f437086ef70250fdc75f0a5f2fcf8adc272d05ab2e00b1de6e14613296881271caee037dadf9130fdeb498c59e
languageName: node
linkType: hard

"@types/reactcss@npm:*":
version: 1.2.6
resolution: "@types/reactcss@npm:1.2.6"
Expand Down Expand Up @@ -2552,7 +2541,7 @@ __metadata:
"@types/humanize-duration": "npm:^3.27.3"
"@types/lodash-es": "npm:^4.17.12"
"@types/md5": "npm:^2.3.5"
"@types/react": "npm:18.2.45"
"@types/react": "npm:18.2.18"
"@types/react-color": "npm:^3.0.10"
"@types/react-copy-to-clipboard": "npm:^5.0.7"
"@types/react-dom": "npm:^18.2.18"
Expand Down

0 comments on commit f6d017b

Please sign in to comment.