Skip to content

Commit

Permalink
fix: fix fleet theme id
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Apr 27, 2024
1 parent e29fdd0 commit ec3ba9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/codeimage/src/pages/Dashboard/dashboard.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function makeDashboardState(authState = getAuth0State()) {
}

async function createNewProject() {
const theme = await getThemeStore().getThemeDef('fleetTheme')?.load();
const theme = await getThemeStore().getThemeDef('fleetDark')?.load();

const frame = getInitialFrameState();

Expand Down
2 changes: 1 addition & 1 deletion apps/codeimage/src/state/editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function createEditorStore() {
const frame = getFrameState();
const editor = createEditorsStore();

const [resource] = registry.getThemeResource('fleetTheme');
const [resource] = registry.getThemeResource('fleetDark');

createEffect(
on(resource, async resource => {
Expand Down
2 changes: 1 addition & 1 deletion apps/codeimage/src/state/theme/themeRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface ThemeRegistryEntry {

export const THEME_REGISTRY: ReadonlyArray<ThemeRegistryEntry> = [
{
id: 'fleetTheme',
id: 'fleetDark',
// prettier-ignore
load: () => import('@codeimage/highlight/themes').then(m => m.fleetDarkTheme),
},
Expand Down

0 comments on commit ec3ba9f

Please sign in to comment.