Skip to content

Commit

Permalink
fix: modifier types
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Dec 25, 2023
1 parent 3578b33 commit 654f35a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/theme/getBodyClassName.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import {block, blockNew} from '../utils/cn';

import type {RealTheme} from './types';
import type {BodyClassNameModifiers} from './updateBodyClassName';

const ROOT_CLASS_NAME = 'root';

const bNew = blockNew(ROOT_CLASS_NAME);
const b = block(ROOT_CLASS_NAME);

export function getDeprecatedBodyRootClassName(
modifier?: Record<string, string | boolean | undefined>,
modifier?: Partial<BodyClassNameModifiers & {theme: RealTheme | boolean}>,
) {
return b(modifier);
}
export function getBodyRootClassName(
modifier?: Record<string, string | boolean | undefined>,
modifier?: Partial<BodyClassNameModifiers & {theme: RealTheme | boolean}>,
addition?: string[],
) {
return bNew(modifier, addition);
Expand Down

0 comments on commit 654f35a

Please sign in to comment.