Ensure static components are rendered on server
This commit is contained in:
parent
739152b74a
commit
dbccd9437b
@ -1,5 +1,6 @@
|
|||||||
|
"use server"
|
||||||
|
|
||||||
const AboutMe = () => {
|
export default async function AboutMe() {
|
||||||
return (
|
return (
|
||||||
<section className="my-6 flex flex-col items-center justify-center">
|
<section className="my-6 flex flex-col items-center justify-center">
|
||||||
<h2 className="text-3xl font-semibold mb-4">About Me</h2>
|
<h2 className="text-3xl font-semibold mb-4">About Me</h2>
|
||||||
@ -20,4 +21,3 @@ const AboutMe = () => {
|
|||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
export default AboutMe;
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
"use server"
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
export function PFPName() {
|
export async function PFPName() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-row items-center justify-center">
|
<div className="flex flex-row items-center justify-center">
|
||||||
<Image src={"/original.png"} alt={"Gabriel's Profile Picture"}
|
<Image src={"/original.png"} alt={"Gabriel's Profile Picture"}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { Bar, BarChart, XAxis, YAxis, Tooltip, ResponsiveContainer } from "recharts"
|
import { Bar, BarChart, XAxis, YAxis, ResponsiveContainer } from "recharts"
|
||||||
import { Card, CardHeader, CardContent } from "~/components/ui/card"
|
import { Card, CardHeader, CardContent } from "~/components/ui/card"
|
||||||
|
|
||||||
const chartData = [
|
const chartData = [
|
||||||
|
Loading…
Reference in New Issue
Block a user