partners docs button fix
This commit is contained in:
parent
cfc461b2e5
commit
85213d65c5
1 changed files with 10 additions and 1 deletions
|
@ -1,9 +1,15 @@
|
||||||
|
"use client";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
import { ArrowUpRight } from "lucide-react";
|
import { ArrowUpRight } from "lucide-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
const Partners = () => {
|
const Partners = () => {
|
||||||
|
const router = useRouter();
|
||||||
|
const handleClick = () => {
|
||||||
|
router.push("/docs");
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
id="partners"
|
id="partners"
|
||||||
|
@ -17,7 +23,10 @@ const Partners = () => {
|
||||||
<h2 className="text-lg font-medium bg-accent/60 px-2 py-2 rounded-md">
|
<h2 className="text-lg font-medium bg-accent/60 px-2 py-2 rounded-md">
|
||||||
Process of setting up a WordPress website running on SVR.JS.
|
Process of setting up a WordPress website running on SVR.JS.
|
||||||
</h2>
|
</h2>
|
||||||
<Button className="flex-center font-bold max-md:w-full max-w-xl">
|
<Button
|
||||||
|
onClick={handleClick}
|
||||||
|
className="flex-center font-bold max-md:w-full max-w-xl"
|
||||||
|
>
|
||||||
Docs <ArrowUpRight />
|
Docs <ArrowUpRight />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue