Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 파이차트 애니메이션 옵저버 복구 #50

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions components/compositions/dashboard/best-worth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const RenderActiveShape = (props: PieSectorDataItem) => {
function BestWorth({ filter }: { filter: FilterType }) {
const { ref, inView } = useInViewRef<HTMLDivElement>({
once: true,
amount: 'all',
margin: '2%',
})

const { data: statisics, isLoading } = useQuery({
Expand All @@ -152,7 +152,7 @@ function BestWorth({ filter }: { filter: FilterType }) {
}, [statisics])

return (
<div className="w-full h-full flex flex-col">
<div ref={ref} className="w-full h-full flex flex-col">
{isLoading ? (
<>
<div className="text-mainTitle2-bold font-bold h-8 skeleton w-3/4" />
Expand All @@ -170,10 +170,7 @@ function BestWorth({ filter }: { filter: FilterType }) {
</b>
이네요
</h2>
<div
ref={ref}
className="flex justify-center py-12 items-center rounded-2xl shadow-basic mt-8 flex-col px-6"
>
<div className="flex justify-center py-12 items-center rounded-2xl shadow-basic mt-8 flex-col px-6">
<div className="w-[180px] h-[180px] mx-auto relative">
{inView && (
<ResponsiveContainer width="100%" height="100%">
Expand Down
Loading