Skip to content

Commit b8b3dc1

Browse files
committed
[polish] card class name props order
1 parent b30a3d8 commit b8b3dc1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

components/Git/Issue/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export const IssueCard: FC<IssueCardProps> = ({
2323
...props
2424
}) => (
2525
<Box
26-
{...props}
27-
component={component}
2826
className={`elevation-1 hover:elevation-4 relative mb-4 grid break-inside-avoid grid-cols-1 grid-rows-5 gap-2 rounded-2xl border border-gray-200 p-4 dark:border-0 ${className}`}
27+
component={component}
28+
{...props}
2929
>
3030
<a
3131
className="row-span-1 text-2xl font-semibold"

components/Project/Card.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ export const ProjectCard: FC<ProjectCardProps> = ({
1818
price,
1919
settlementDate,
2020
component = 'li',
21+
...props
2122
}) => (
2223
<Box
23-
component={component}
2424
className={`elevation-1 hover:elevation-4 relative rounded-2xl border border-gray-200 p-4 dark:border-0 ${className} mb-4 grid break-inside-avoid grid-cols-1 grid-rows-4 gap-2`}
25+
component={component}
26+
{...props}
2527
>
2628
<a className="row-span-2 flex items-center justify-between" href={`/project/${id}`}>
2729
<h2 className="text-lg">{String(name)}</h2>

components/Project/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface ProjectListLayoutProps {
99
}
1010

1111
export const ProjectListLayout: FC<ProjectListLayoutProps> = ({ className = '', defaultData }) => (
12-
<ul className={`${className} grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3`}>
12+
<ul className={`grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 ${className}`}>
1313
{defaultData.map(item => (
1414
<ProjectCard key={String(item.id)} className="h-full" {...item} />
1515
))}

0 commit comments

Comments
 (0)