Skip to content

Commit f6d017b

Browse files
committed
Fix dependency upgrade issues
1 parent 7317c14 commit f6d017b

4 files changed

Lines changed: 6 additions & 17 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@types/humanize-duration": "^3.27.3",
1515
"@types/lodash-es": "^4.17.12",
1616
"@types/md5": "^2.3.5",
17-
"@types/react": "18.2.45",
17+
"@types/react": "18.2.18",
1818
"@types/react-color": "^3.0.10",
1919
"@types/react-copy-to-clipboard": "^5.0.7",
2020
"@types/react-dom": "^18.2.18",

src/app/pages/MultiBotChatPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ConversationPanel from '../components/Chat/ConversationPanel'
1717

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

20-
const layoutAtom = atomWithStorage<Layout>('multiPanelLayout', 2, undefined, { unstable_getOnInit: true })
20+
const layoutAtom = atomWithStorage<Layout>('multiPanelLayout', 2, undefined, { getOnInit: true })
2121
const twoPanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:2', DEFAULT_BOTS.slice(0, 2))
2222
const threePanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:3', DEFAULT_BOTS.slice(0, 3))
2323
const fourPanelBotsAtom = atomWithStorage<BotId[]>('multiPanelBots:4', DEFAULT_BOTS.slice(0, 4))

src/app/state/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export const chatFamily = atomFamily(
2424
(a, b) => a.botId === b.botId && a.page === b.page,
2525
)
2626

27-
export const licenseKeyAtom = atomWithStorage('licenseKey', '', undefined, { unstable_getOnInit: true })
28-
export const sidebarCollapsedAtom = atomWithStorage('sidebarCollapsed', false, undefined, { unstable_getOnInit: true })
27+
export const licenseKeyAtom = atomWithStorage('licenseKey', '', undefined, { getOnInit: true })
28+
export const sidebarCollapsedAtom = atomWithStorage('sidebarCollapsed', false, undefined, { getOnInit: true })
2929
export const themeColorAtom = atomWithStorage('themeColor', getDefaultThemeColor())
3030
export const followArcThemeAtom = atomWithStorage('followArcTheme', false)
3131
export const sidePanelBotAtom = atomWithStorage<BotId>('sidePanelBot', 'chatgpt')

yarn.lock

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ __metadata:
18191819
languageName: node
18201820
linkType: hard
18211821

1822-
"@types/react@npm:*":
1822+
"@types/react@npm:*, @types/react@npm:18.2.18":
18231823
version: 18.2.18
18241824
resolution: "@types/react@npm:18.2.18"
18251825
dependencies:
@@ -1830,17 +1830,6 @@ __metadata:
18301830
languageName: node
18311831
linkType: hard
18321832

1833-
"@types/react@npm:18.2.45":
1834-
version: 18.2.45
1835-
resolution: "@types/react@npm:18.2.45"
1836-
dependencies:
1837-
"@types/prop-types": "npm:*"
1838-
"@types/scheduler": "npm:*"
1839-
csstype: "npm:^3.0.2"
1840-
checksum: 4cc650c47ffb88baac29fb7a74e842e4af4a55f437086ef70250fdc75f0a5f2fcf8adc272d05ab2e00b1de6e14613296881271caee037dadf9130fdeb498c59e
1841-
languageName: node
1842-
linkType: hard
1843-
18441833
"@types/reactcss@npm:*":
18451834
version: 1.2.6
18461835
resolution: "@types/reactcss@npm:1.2.6"
@@ -2552,7 +2541,7 @@ __metadata:
25522541
"@types/humanize-duration": "npm:^3.27.3"
25532542
"@types/lodash-es": "npm:^4.17.12"
25542543
"@types/md5": "npm:^2.3.5"
2555-
"@types/react": "npm:18.2.45"
2544+
"@types/react": "npm:18.2.18"
25562545
"@types/react-color": "npm:^3.0.10"
25572546
"@types/react-copy-to-clipboard": "npm:^5.0.7"
25582547
"@types/react-dom": "npm:^18.2.18"

0 commit comments

Comments
 (0)