Skip to content

Commit c2031a3

Browse files
Merge pull request #46 from LuminaEnvision/main
fix: correct ref callback return types in docs page
2 parents 8ffb17d + 94a373b commit c2031a3

1 file changed

Lines changed: 39 additions & 13 deletions

File tree

app/docs/page.tsx

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export default function DocsPage() {
184184
{/* Quick Start */}
185185
<section
186186
id="quick-start"
187-
ref={(el) => (sectionRefs.current["quick-start"] = el)}
187+
ref={(el) => {
188+
sectionRefs.current["quick-start"] = el;
189+
}}
188190
className="mb-16 scroll-mt-24"
189191
>
190192
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -234,7 +236,9 @@ npm run dev`}</code>
234236
{/* Tech Stack */}
235237
<section
236238
id="tech-stack"
237-
ref={(el) => (sectionRefs.current["tech-stack"] = el)}
239+
ref={(el) => {
240+
sectionRefs.current["tech-stack"] = el;
241+
}}
238242
className="mb-16 scroll-mt-24"
239243
>
240244
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -301,7 +305,9 @@ npm run dev`}</code>
301305
{/* Architecture Overview */}
302306
<section
303307
id="architecture"
304-
ref={(el) => (sectionRefs.current["architecture"] = el)}
308+
ref={(el) => {
309+
sectionRefs.current["architecture"] = el;
310+
}}
305311
className="mb-16 scroll-mt-24"
306312
>
307313
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -354,7 +360,9 @@ npm run dev`}</code>
354360
{/* Environment Setup */}
355361
<section
356362
id="environment"
357-
ref={(el) => (sectionRefs.current["environment"] = el)}
363+
ref={(el) => {
364+
sectionRefs.current["environment"] = el;
365+
}}
358366
className="mb-16 scroll-mt-24"
359367
>
360368
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -436,7 +444,9 @@ npm run dev`}</code>
436444
{/* Development Commands */}
437445
<section
438446
id="commands"
439-
ref={(el) => (sectionRefs.current["commands"] = el)}
447+
ref={(el) => {
448+
sectionRefs.current["commands"] = el;
449+
}}
440450
className="mb-16 scroll-mt-24"
441451
>
442452
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -511,7 +521,9 @@ npm run dev`}</code>
511521
{/* Smart Contracts */}
512522
<section
513523
id="contracts"
514-
ref={(el) => (sectionRefs.current["contracts"] = el)}
524+
ref={(el) => {
525+
sectionRefs.current["contracts"] = el;
526+
}}
515527
className="mb-16 scroll-mt-24"
516528
>
517529
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -623,7 +635,9 @@ npm run dev`}</code>
623635
{/* Project Structure */}
624636
<section
625637
id="structure"
626-
ref={(el) => (sectionRefs.current["structure"] = el)}
638+
ref={(el) => {
639+
sectionRefs.current["structure"] = el;
640+
}}
627641
className="mb-16 scroll-mt-24"
628642
>
629643
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -653,7 +667,9 @@ npm run dev`}</code>
653667
{/* Testing */}
654668
<section
655669
id="testing"
656-
ref={(el) => (sectionRefs.current["testing"] = el)}
670+
ref={(el) => {
671+
sectionRefs.current["testing"] = el;
672+
}}
657673
className="mb-16 scroll-mt-24"
658674
>
659675
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -693,7 +709,9 @@ npm run dev`}</code>
693709
{/* Deployment */}
694710
<section
695711
id="deployment"
696-
ref={(el) => (sectionRefs.current["deployment"] = el)}
712+
ref={(el) => {
713+
sectionRefs.current["deployment"] = el;
714+
}}
697715
className="mb-16 scroll-mt-24"
698716
>
699717
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -728,7 +746,9 @@ npm run dev`}</code>
728746
{/* API Routes */}
729747
<section
730748
id="api-routes"
731-
ref={(el) => (sectionRefs.current["api-routes"] = el)}
749+
ref={(el) => {
750+
sectionRefs.current["api-routes"] = el;
751+
}}
732752
className="mb-16 scroll-mt-24"
733753
>
734754
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -776,7 +796,9 @@ npm run dev`}</code>
776796
{/* Security Notes */}
777797
<section
778798
id="security"
779-
ref={(el) => (sectionRefs.current["security"] = el)}
799+
ref={(el) => {
800+
sectionRefs.current["security"] = el;
801+
}}
780802
className="mb-16 scroll-mt-24"
781803
>
782804
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -801,7 +823,9 @@ npm run dev`}</code>
801823
{/* Troubleshooting */}
802824
<section
803825
id="troubleshooting"
804-
ref={(el) => (sectionRefs.current["troubleshooting"] = el)}
826+
ref={(el) => {
827+
sectionRefs.current["troubleshooting"] = el;
828+
}}
805829
className="mb-16 scroll-mt-24"
806830
>
807831
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">
@@ -838,7 +862,9 @@ npm run dev`}</code>
838862
{/* Resources & Links */}
839863
<section
840864
id="resources"
841-
ref={(el) => (sectionRefs.current["resources"] = el)}
865+
ref={(el) => {
866+
sectionRefs.current["resources"] = el;
867+
}}
842868
className="mb-16 scroll-mt-24"
843869
>
844870
<h2 className="text-3xl md:text-4xl font-normal uppercase text-white mb-6 border-b border-[#58B12F] pb-3">

0 commit comments

Comments
 (0)