File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const ComponentsSection: FC = () => {
25
25
) ) }
26
26
</ div >
27
27
< div className = "mb-4 flex w-full justify-center text-center" >
28
- < Button href = "/docs/components/accordion" color = "light" >
28
+ < Button as = { Link } href = "/docs/components/accordion" color = "light" >
29
29
View all components
30
30
</ Button >
31
31
</ div >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { FC } from 'react';
3
3
import { HiOutlineArrowRight } from 'react-icons/hi' ;
4
4
import { Button } from '~/src' ;
5
5
import { CopyPackageInput } from './copy-package-input' ;
6
+ import Link from 'next/link' ;
6
7
7
8
export const HeroSection : FC = ( ) => {
8
9
return (
@@ -23,7 +24,12 @@ export const HeroSection: FC = () => {
23
24
< CopyPackageInput value = "npm i flowbite-react" />
24
25
< div className = "justify-center sm:flex sm:justify-start" >
25
26
< div className = "mx-0 flex flex-row items-center gap-4 sm:gap-6" >
26
- < Button href = "/docs/getting-started/introduction" size = "lg" className = "w-full whitespace-nowrap" >
27
+ < Button
28
+ as = { Link }
29
+ size = "lg"
30
+ href = "/docs/getting-started/introduction"
31
+ className = "w-full whitespace-nowrap"
32
+ >
27
33
Get started < HiOutlineArrowRight className = "ml-2 mt-1 h-4 w-4" />
28
34
</ Button >
29
35
</ div >
Original file line number Diff line number Diff line change 1
1
import Image from 'next/image' ;
2
+ import Link from 'next/link' ;
2
3
import type { FC } from 'react' ;
3
4
import { HiOutlineArrowRight } from 'react-icons/hi' ;
4
5
import { Button } from '~/src' ;
@@ -75,10 +76,10 @@ export const ReactSection: FC = () => {
75
76
) ) }
76
77
</ ul >
77
78
< div className = "flex flex-row gap-4" >
78
- < Button href = "/docs/getting-started/quickstart" >
79
+ < Button as = { Link } href = "/docs/getting-started/quickstart" >
79
80
Start building < HiOutlineArrowRight className = "ml-2 h-5 w-5" />
80
81
</ Button >
81
- < Button href = "https://github.com/themesberg/flowbite-react" color = "gray" >
82
+ < Button as = { Link } href = "https://github.com/themesberg/flowbite-react" color = "gray" >
82
83
View on GitHub
83
84
</ Button >
84
85
</ div >
You can’t perform that action at this time.
0 commit comments