Skip to content

Commit 4823385

Browse files
committed
fix: fix imports
1 parent 3efaff6 commit 4823385

File tree

3 files changed

+113
-122
lines changed

3 files changed

+113
-122
lines changed

content/components/marketing/hero-simple.mdx content/components/marketing/hero-section.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ title: Centered Hero section
44
thumbnail: https://h2rsi9anqnqbkvkf.public.blob.vercel-storage.com/rOFvfTa-V4dK55wvEkjUz652JrOHzAdtQqNC70.png
55
---
66

7-
<ComponentPreview name="components/marketing/hero/hero-simple" />
7+
<ComponentPreview name="components/marketing/hero-section" />

src/autogenerated/previews.ts

+112-121
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
// This file is autogenerated by scripts/build-preview-imports.ts
2-
// Do not edit this file directly.
3-
import React from "react";
4-
5-
export const previews = {
6-
"components/animations/sparkle-button": {
7-
component: React.lazy<React.FC>(
8-
() => import("~/content/components/animations/sparkle-button")
9-
),
10-
code: `import { Button } from "@/modules/components/sparkle-button";
1+
2+
// This file is autogenerated by scripts/build-preview-imports.ts
3+
// Do not edit this file directly.
4+
import React from "react";
5+
6+
export const previews = {
7+
"components/animations/sparkle-button": {
8+
component: React.lazy<React.FC>(() => import("~/content/components/animations/sparkle-button")),
9+
code : `import { Button } from "@/modules/components/sparkle-button";
1110
1211
export default function SparkleButton() {
1312
return <Button variant="sparkle">Get started</Button>;
1413
}
15-
`,
16-
},
17-
"components/marketing/hero-simple": {
18-
component: React.lazy<React.FC>(
19-
() => import("~/content/components/marketing/hero-simple")
20-
),
21-
code: `import React from "react";
14+
`
15+
},
16+
"components/marketing/hero-section": {
17+
component: React.lazy<React.FC>(() => import("~/content/components/marketing/hero-section")),
18+
code : `import React from "react";
2219
import Link from "next/link";
2320
import { ArrowRightIcon, SearchIcon, SparklesIcon } from "lucide-react";
2421
import { badgeVariants } from "@/components/ui/badge";
@@ -57,18 +54,18 @@ export default function Demo() {
5754
</section>
5855
);
5956
}
60-
`,
61-
},
62-
"hooks/use-continuous-retry": {
63-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-continuous-retry")),
64-
code: `export default function Demo() {
57+
`
58+
},
59+
"hooks/use-continuous-retry": {
60+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-continuous-retry")),
61+
code : `export default function Demo() {
6562
return <div>demo</div>;
6663
}
67-
`,
68-
},
69-
"hooks/use-debounce": {
70-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-debounce")),
71-
code: `"use client";
64+
`
65+
},
66+
"hooks/use-debounce": {
67+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-debounce")),
68+
code : `"use client";
7269
7370
import * as React from "react";
7471
import { Loader2Icon, SearchIcon } from "lucide-react";
@@ -121,94 +118,88 @@ export default function UseDebounceDemo() {
121118
</div>
122119
);
123120
}
124-
`,
125-
},
126-
"hooks/use-fetch": {
127-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-fetch")),
128-
code: `export default function Demo() {
121+
`
122+
},
123+
"hooks/use-fetch": {
124+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-fetch")),
125+
code : `export default function Demo() {
129126
return <div>demo</div>;
130127
}
131-
`,
132-
},
133-
"hooks/use-intersection-observer": {
134-
component: React.lazy<React.FC>(
135-
() => import("~/content/hooks/use-intersection-observer")
136-
),
137-
code: `export default function Demo() {
128+
`
129+
},
130+
"hooks/use-intersection-observer": {
131+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-intersection-observer")),
132+
code : `export default function Demo() {
138133
return <div>demo</div>;
139134
}
140-
`,
141-
},
142-
"hooks/use-local-storage": {
143-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-local-storage")),
144-
code: `export default function Demo() {
135+
`
136+
},
137+
"hooks/use-local-storage": {
138+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-local-storage")),
139+
code : `export default function Demo() {
145140
return <div>demo</div>;
146141
}
147-
`,
148-
},
149-
"hooks/use-media-query": {
150-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-media-query")),
151-
code: `export default function Demo() {
142+
`
143+
},
144+
"hooks/use-media-query": {
145+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-media-query")),
146+
code : `export default function Demo() {
152147
return <div>demo</div>;
153148
}
154-
`,
155-
},
156-
"hooks/use-network-state": {
157-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-network-state")),
158-
code: `export default function Demo() {
149+
`
150+
},
151+
"hooks/use-network-state": {
152+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-network-state")),
153+
code : `export default function Demo() {
159154
return <div>demo</div>;
160155
}
161-
`,
162-
},
163-
"hooks/use-orientation": {
164-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-orientation")),
165-
code: `export default function Demo() {
156+
`
157+
},
158+
"hooks/use-orientation": {
159+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-orientation")),
160+
code : `export default function Demo() {
166161
return <div>demo</div>;
167162
}
168-
`,
169-
},
170-
"hooks/use-preferred-language": {
171-
component: React.lazy<React.FC>(
172-
() => import("~/content/hooks/use-preferred-language")
173-
),
174-
code: `export default function Demo() {
163+
`
164+
},
165+
"hooks/use-preferred-language": {
166+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-preferred-language")),
167+
code : `export default function Demo() {
175168
return <div>demo</div>;
176169
}
177-
`,
178-
},
179-
"hooks/use-previous": {
180-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-previous")),
181-
code: `export default function Demo() {
170+
`
171+
},
172+
"hooks/use-previous": {
173+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-previous")),
174+
code : `export default function Demo() {
182175
return <div>demo</div>;
183176
}
184-
`,
185-
},
186-
"hooks/use-session-storage": {
187-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-session-storage")),
188-
code: `export default function Demo() {
177+
`
178+
},
179+
"hooks/use-session-storage": {
180+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-session-storage")),
181+
code : `export default function Demo() {
189182
return <div>demo</div>;
190183
}
191-
`,
192-
},
193-
"hooks/use-visibility-change": {
194-
component: React.lazy<React.FC>(
195-
() => import("~/content/hooks/use-visibility-change")
196-
),
197-
code: `export default function Demo() {
184+
`
185+
},
186+
"hooks/use-visibility-change": {
187+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-visibility-change")),
188+
code : `export default function Demo() {
198189
return <div>demo</div>;
199190
}
200-
`,
201-
},
202-
"hooks/use-window-size": {
203-
component: React.lazy<React.FC>(() => import("~/content/hooks/use-window-size")),
204-
code: `export default function Demo() {
191+
`
192+
},
193+
"hooks/use-window-size": {
194+
component: React.lazy<React.FC>(() => import("~/content/hooks/use-window-size")),
195+
code : `export default function Demo() {
205196
return <div>demo</div>;
206197
}
207-
`,
208-
},
209-
"pages/about": {
210-
component: React.lazy<React.FC>(() => import("~/content/pages/about")),
211-
code: `export default function About() {
198+
`
199+
},
200+
"pages/about": {
201+
component: React.lazy<React.FC>(() => import("~/content/pages/about")),
202+
code : `export default function About() {
212203
return (
213204
<div className="min-h-screen">
214205
<h1>About</h1>
@@ -219,11 +210,11 @@ export default function UseDebounceDemo() {
219210
</div>
220211
);
221212
}
222-
`,
223-
},
224-
"pages/account": {
225-
component: React.lazy<React.FC>(() => import("~/content/pages/account")),
226-
code: `export default function Account() {
213+
`
214+
},
215+
"pages/account": {
216+
component: React.lazy<React.FC>(() => import("~/content/pages/account")),
217+
code : `export default function Account() {
227218
return (
228219
<div className="min-h-screen">
229220
<h1>Account</h1>
@@ -234,11 +225,11 @@ export default function UseDebounceDemo() {
234225
</div>
235226
);
236227
}
237-
`,
238-
},
239-
"pages/landing": {
240-
component: React.lazy<React.FC>(() => import("~/content/pages/landing")),
241-
code: `export default function Landing() {
228+
`
229+
},
230+
"pages/landing": {
231+
component: React.lazy<React.FC>(() => import("~/content/pages/landing")),
232+
code : `export default function Landing() {
242233
return (
243234
<div className="min-h-screen">
244235
<h1>Landing</h1>
@@ -249,11 +240,11 @@ export default function UseDebounceDemo() {
249240
</div>
250241
);
251242
}
252-
`,
253-
},
254-
"pages/login": {
255-
component: React.lazy<React.FC>(() => import("~/content/pages/login")),
256-
code: `export default function Login() {
243+
`
244+
},
245+
"pages/login": {
246+
component: React.lazy<React.FC>(() => import("~/content/pages/login")),
247+
code : `export default function Login() {
257248
return (
258249
<div className="min-h-screen">
259250
<h1>Login</h1>
@@ -264,11 +255,11 @@ export default function UseDebounceDemo() {
264255
</div>
265256
);
266257
}
267-
`,
268-
},
269-
"pages/pricing": {
270-
component: React.lazy<React.FC>(() => import("~/content/pages/pricing")),
271-
code: `export default function Pricing() {
258+
`
259+
},
260+
"pages/pricing": {
261+
component: React.lazy<React.FC>(() => import("~/content/pages/pricing")),
262+
code : `export default function Pricing() {
272263
return (
273264
<div className="min-h-screen">
274265
<h1>Pricing</h1>
@@ -279,11 +270,11 @@ export default function UseDebounceDemo() {
279270
</div>
280271
);
281272
}
282-
`,
283-
},
284-
"pages/register": {
285-
component: React.lazy<React.FC>(() => import("~/content/pages/register")),
286-
code: `export default function Register() {
273+
`
274+
},
275+
"pages/register": {
276+
component: React.lazy<React.FC>(() => import("~/content/pages/register")),
277+
code : `export default function Register() {
287278
return (
288279
<div className="min-h-screen">
289280
<h1>Register</h1>
@@ -294,6 +285,6 @@ export default function UseDebounceDemo() {
294285
</div>
295286
);
296287
}
297-
`,
298-
},
299-
};
288+
`
289+
}
290+
}

0 commit comments

Comments
 (0)