Skip to content

Commit 3417e50

Browse files
committed
fix lint and type issues
1 parent 5936e7d commit 3417e50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/profile/Themecard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export const ThemeCard: React.FC<GenericItemCardProps> = ({ themeImg, id, name,
99
<h1 className="font-extrabold text-xl">{name}</h1>
1010
<p className="text-primary-mutedForeground text-sm block ">{description}</p>
1111
<div className="flex absolute bottom-0 bg-primary-darkForeground flex-row gap-2">
12-
<Link className=" cursor-pointer font-extrabold text-sm text-blue-500" to={"/themes?theme="+encodeURIComponent(id)} >View Theme</Link>
12+
<Link className=" cursor-pointer font-extrabold text-sm text-blue-500"
13+
to={"/themes?theme="+encodeURIComponent(id )} >View Theme</Link>
1314
{/* {mode == 1 && <a className="cursor-pointer text-sm text-red-500">Remove favourite</a>} */}
1415
</div>
1516
</div>

src/interfaces/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface PropTypes { type: string, items: Array<any>, loading: boolean, error: any };
2-
export interface GenericItemCardProps {mode: number, name: string, id?: number, themeImg: string, description: string};
2+
export interface GenericItemCardProps {mode: number, name: string, id: string, themeImg: string, description: string};
33
export type ItemsIterator = {items: Array<GenericItemCardProps>, mode: number, type: string, config: any};
44

55
interface EmptyState {

0 commit comments

Comments
 (0)