From 7013710fd6f7a6492cb93bc4129ee50989e55822 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 12 Jun 2023 20:21:06 +0100 Subject: [PATCH] refactor: add use client --- src/components/ui/APlayer.tsx | 2 ++ src/components/ui/DPlayer.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/ui/APlayer.tsx b/src/components/ui/APlayer.tsx index aa4ccb86..3fcffd6c 100644 --- a/src/components/ui/APlayer.tsx +++ b/src/components/ui/APlayer.tsx @@ -1,3 +1,5 @@ +"use client" + import { APlayer as AplayerReact } from "aplayer-react" import "aplayer-react/dist/index.css" import { memo } from "react" diff --git a/src/components/ui/DPlayer.tsx b/src/components/ui/DPlayer.tsx index 0bd13a72..5c75c615 100644 --- a/src/components/ui/DPlayer.tsx +++ b/src/components/ui/DPlayer.tsx @@ -1,3 +1,5 @@ +"use client" + import { DPlayerProps, Player as RcDPlayer } from "rc-dplayer" import { memo } from "react" import { ReactElement } from "rehype-react/lib"