Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
notunderctrl committed Jan 12, 2025
1 parent 910414d commit b45ec83
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ node_modules
.docusaurus
.astro
dist
build
.commandkit

.DS_Store
Expand Down
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: 2 additions & 3 deletions apps/docs/components/layout/language-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ 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>;
}
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 b45ec83

Please sign in to comment.