Skip to content

Commit

Permalink
fix: loader 배경색상이 모두 적용되는 문제 수정 (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong authored Dec 5, 2024
2 parents fe8c52e + 456e986 commit e36bcee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion packages/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ const App = () => {
return (
<QueryClientProvider client={queryClient}>
<ErrorBoundary fallback={<Error />}>
<Suspense fallback={<Loader className="h-64 w-64 items-center" />}>
<Suspense
fallback={
<div className="bg-extra-light-gray flex h-screen items-center justify-center">
<Loader className="h-64 w-64 items-center" />
</div>
}
>
<RouterProvider router={router} />
<ReactQueryDevtools initialIsOpen={false} />
</Suspense>
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/src/components/ui/loader/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ interface LoaderProps {

export const Loader = ({ className }: LoaderProps) => {
return (
<div className="bg-extra-light-gray flex h-screen justify-center">
<Lottie className={className} animationData={loading} play speed={3} />
</div>
<Lottie className={className} animationData={loading} play speed={3} />
);
};

0 comments on commit e36bcee

Please sign in to comment.