Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Jan 12, 2025
1 parent 021a49c commit 910414d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/docs/components/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Accordions = forwardRef<
| Omit<AccordionMultipleProps, 'value' | 'onValueChange'>
>(({ type = 'single', className, defaultValue, ...props }, ref) => {
const [value, setValue] = useState<string | string[]>(
type === 'single' ? defaultValue ?? '' : defaultValue ?? [],
type === 'single' ? (defaultValue ?? '') : (defaultValue ?? []),
);

useEffect(() => {
Expand Down
5 changes: 3 additions & 2 deletions apps/docs/components/layout/language-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export function LanguageToggleText(
props: HTMLAttributes<HTMLSpanElement>,
): React.ReactElement {
const context = useI18n();
const text = context.locales?.find((item) => item.locale === context.locale)
?.name;
const text = context.locales?.find(
(item) => item.locale === context.locale,
)?.name;

return <span {...props}>{text}</span>;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"nanoid@<3.3.8": "3.3.8"
}
}
}
}
4 changes: 2 additions & 2 deletions packages/commandkit/src/cache/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function unstable_cacheTag(
typeof options === 'string'
? { name: options }
: typeof options === 'number'
? { name: randomUUID(), ttl: options }
: options;
? { name: randomUUID(), ttl: options }
: options;

Reflect.set(fn, '__cache_params', opt);
}
Expand Down

0 comments on commit 910414d

Please sign in to comment.