Skip to content

Commit

Permalink
Merge pull request #446 from jpudysz/fix/nested-variants
Browse files Browse the repository at this point in the history
fix: nested variants
  • Loading branch information
jpudysz authored Dec 16, 2024
2 parents cad94e7 + 5b5f1cd commit 54b0c98
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/web/create.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { StyleSheetWithSuperPowers, StyleSheet } from '../types/stylesheet'
import { assignSecrets, error, removeInlineStyles } from './utils'
import { UnistylesRuntime } from './runtime'
import { UnistylesShadowRegistry } from '../specs'

const useVariants = ['useVariants', (variants: Record<string, string | boolean>) => {
UnistylesShadowRegistry.selectVariants(variants)
}]
const useVariants = ['useVariants', () => {}]

export const create = (stylesheet: StyleSheetWithSuperPowers<StyleSheet>, id?: string) => {
if (!id) {
Expand Down

0 comments on commit 54b0c98

Please sign in to comment.