Skip to content

Commit

Permalink
docs: fix getApperance helper (#4076)
Browse files Browse the repository at this point in the history
Co-authored-by: sarahgm <[email protected]>
  • Loading branch information
sebald and sarahgm authored Aug 5, 2024
1 parent b639ce3 commit 7c1987b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/lib/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const iterateTokens = (colors: NestedStringObject, prefix = '') => {

const getKeys = (schema: ConfigSchema) => {
return {
variant: schema?.variant && Object.keys(schema?.variant),
size: schema?.size && Object.keys(schema?.size),
variant: schema?.variant ? Object.keys(schema?.variant) : [],
size: schema?.size ? Object.keys(schema?.size) : [],
};
};

Expand Down Expand Up @@ -52,6 +52,6 @@ export const getAppearance = (
'variants' in styles
? getKeys(styles.variants as ConfigSchema)
: getKeysFromSlots(styles);

console.log(appearances);
return appearances;
};

0 comments on commit 7c1987b

Please sign in to comment.