Skip to content

Commit b9d8b7a

Browse files
committed
refactor: remove BMF-Theme stuff
1 parent 6b621ee commit b9d8b7a

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

src/shares/theme.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import type { SelectOption } from '@public-ui/components';
22

3-
export type Theme = 'unstyled' | 'bmf' | 'default' | 'ecl-ec' | 'ecl-eu' | 'itzbund';
3+
export type Theme = 'unstyled' | 'default' | 'ecl-ec' | 'ecl-eu' | 'itzbund';
44

55
export const isTheme = (value: unknown) => {
66
console.log('typeof value', typeof value);
77
return (
88
typeof value === 'string' &&
9-
(value === 'unstyled' ||
10-
value === 'bmf' ||
11-
value === 'default' ||
12-
value === 'ecl-ec' ||
13-
value === 'ecl-eu' ||
14-
value === 'itzbund')
9+
(value === 'unstyled' || value === 'default' || value === 'ecl-ec' || value === 'ecl-eu' || value === 'itzbund')
1510
);
1611
};
1712

@@ -25,10 +20,6 @@ export const THEME_OPTIONS: SelectOption<Theme>[] = [
2520
label: 'Unstyled',
2621
value: 'unstyled',
2722
},
28-
{
29-
label: 'Bundesministerium der Finanzen',
30-
value: 'bmf',
31-
},
3223
{
3324
label: 'Default',
3425
value: 'default',

src/theme/Root.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { register } from '@public-ui/components';
22
import { defineCustomElements } from '@public-ui/components/dist/loader';
3-
import { BMF, DEFAULT, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
3+
import { DEFAULT, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
44
import type { FunctionComponent, PropsWithChildren } from 'react';
55
import React, { useEffect, useState } from 'react';
66
import type { Theme } from '../shares/theme';
77

88
export const Root: FunctionComponent<PropsWithChildren> = (props) => {
9-
const [theme] = useState<Theme>('bmf');
9+
const [theme] = useState<Theme>('default');
1010

1111
useEffect(() => {
12-
register([BMF, DEFAULT, ECL_EC, ECL_EU, ITZBund], [defineCustomElements], {
12+
register([DEFAULT, ECL_EC, ECL_EU, ITZBund], [defineCustomElements], {
1313
theme: {
1414
detect: 'auto',
1515
},

0 commit comments

Comments
 (0)