chore: bump @gpustack/core-ui to ^1.0.10
1.0.10 ships the fix for the rolldown-emitted `require("react")` shim
that broke 1.0.9 runtime (the dist bundle no longer calls the
runtime require helper for react / react-dom). Pin the OSS host's
package.json spec accordingly and regenerate the lockfile.
Side fix in `pages/login/index.tsx`: 1.0.10's `CoreHooks` type
makes `useCurrentUser` and `useTableFetch` required. The login
page's CoreUIProvider never needed them (no current-user reads
and no tables), so cast the hooks block to `any` rather than
mounting stubs that would never run.
This commit is contained in:
@@ -209,11 +209,18 @@ const Login = () => {
|
||||
isDarkTheme: userSettings.isDarkTheme,
|
||||
defaultColorPrimary: COLOR_PRIMARY
|
||||
}}
|
||||
hooks={{
|
||||
useUserSettings: useUserSettings as any,
|
||||
useUserSettingsStorage: () => userSettingsStorage,
|
||||
useIntl: useIntl
|
||||
}}
|
||||
hooks={
|
||||
{
|
||||
useUserSettings: useUserSettings as any,
|
||||
useUserSettingsStorage: () => userSettingsStorage,
|
||||
useIntl: useIntl
|
||||
// useCurrentUser / useTableFetch are required by the
|
||||
// 1.0.10 CoreHooks type but the login page doesn't use
|
||||
// either — nothing here lists data or reads the current
|
||||
// user. Cast away rather than mounting stubs that would
|
||||
// never run.
|
||||
} as any
|
||||
}
|
||||
i18n={intl}
|
||||
locale={{
|
||||
getAllLocales: getAllLocales,
|
||||
|
||||
Reference in New Issue
Block a user