Skip to content

Commit eb602e8

Browse files
feat: icons
1 parent e70a225 commit eb602e8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ Please read the [contributing guide](/CONTRIBUTING.md).
1515
## License
1616

1717
Licensed under the [MIT license](https://github.com/manfromexistence/ui/blob/main/LICENSE.md).
18-
19-
```
20-
I am react Nextjs developer. So, please explain this vuejs code to me and guide me how to do in nextjs typescript ```
21-
```

apps/www/app/(internal)/icons/[id]/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ function IconGrid({
7474
return (
7575
<div
7676
key={iconName}
77-
className="group flex flex-col items-center justify-center rounded-lg py-1.5 transition-colors hover:bg-primary-foreground"
77+
className="group flex h-10 w-10 flex-col items-center justify-center rounded-lg transition-colors hover:bg-primary-foreground"
7878
>
79-
<div className="flex h-8 w-8 items-center justify-center">
79+
<div className="flex items-center justify-center">
8080
<svg
8181
xmlns="http://www.w3.org/2000/svg"
8282
viewBox={`0 0 ${width} ${height}`}
@@ -102,7 +102,7 @@ export default async function IconsPage({ params }: PageProps) {
102102
notFound();
103103
}
104104

105-
const iconsFilePath = path.join(process.cwd(), 'public', 'icons', `${params.id}.json`);
105+
const iconsFilePath = path.join(process.cwd(), 'data', 'icons', `${params.id}.json`);
106106
const iconData = await getIconsData(iconsFilePath);
107107

108108
if (!iconData) {

0 commit comments

Comments
 (0)