Skip to content

Commit e649d1c

Browse files
committed
fix ESLint
1 parent fe3ed31 commit e649d1c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { NextConfig } from "next";
33
const nextConfig: NextConfig = {
44
/* config options here */
55
reactStrictMode: true,
6+
images: {
7+
domains: ["img.shields.io"],
8+
},
69
};
710

811
export default nextConfig;

src/components/layout/DocsLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ export function DocsLayout({ children, className }: DocsLayoutProps) {
3131
aria-label="Star LuckyUI on GitHub"
3232
title="Star LuckyUI on GitHub"
3333
>
34-
<img
34+
<Image
3535
src="https://img.shields.io/github/stars/Waveful/lucky-ui?style=social"
3636
alt="GitHub Repo stars"
37+
width={120}
38+
height={24}
3739
className="h-6 w-auto"
3840
/>
3941
</Link>

src/pages/colors.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import Head from 'next/head';
22

3-
import { colors } from '@/theme';
3+
import { colors, ColorScopes } from '@/theme';
44

55
export default function ColorsPage() {
66
// Use the new grouped structure (scoped API)
7-
const scopes: Record<string, Record<string, string | Record<string, string>>> =
8-
(colors as any).scopes;
7+
const scopes: ColorScopes = colors.scopes;
98

109
// Helper utilities to ensure readable text over color backgrounds
1110
const hexToRgb = (hex: string) => {

0 commit comments

Comments
 (0)