Skip to content

Commit

Permalink
style(list component): run prettier to format changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
paghar committed Nov 12, 2023
1 parent b4d7bf4 commit 8478f3e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export const COMPONENTS_DATA: Component[] = [
image: '/images/components/list.svg',
imageDark: '/images/components/list-dark.svg',
link: `/docs/typography/list`,
classes: 'w-64'
classes: 'w-64',
},
// {
// name: 'Link',
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/List.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ const TestList = (): JSX.Element => {
);
};

const listGroup = () => screen.getByRole('list');
const listGroup = () => screen.getByRole('list');
2 changes: 1 addition & 1 deletion src/components/List/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ DefaultList.args = {
<List.Item>Inclusion of at least one special character, e.g., ! @ # ? </List.Item>
</>
),
};
};
6 changes: 3 additions & 3 deletions src/components/List/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { FC, PropsWithChildren } from 'react';
import { twMerge } from 'tailwind-merge';
import type { DeepPartial } from '../../types';
import { getTheme } from '../../theme-store';
import { mergeDeep } from '../../helpers/merge-deep';
import { getTheme } from '../../theme-store';
import type { DeepPartial } from '../../types';

export interface FlowbiteListItemTheme {
base: string;
Expand All @@ -17,4 +17,4 @@ export const ListItem: FC<ListItemProps> = ({ children, className, theme: custom
const theme = mergeDeep(getTheme().listGroup.item, customTheme);

return <li className={twMerge(theme.base, className)}>{children}</li>;
};
};
2 changes: 1 addition & 1 deletion src/components/List/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const listTheme: FlowbiteListTheme = {
unstyled: 'list-none',
nested: 'ps-5 mt-2 space-y-1',
},
};
};

0 comments on commit 8478f3e

Please sign in to comment.