瀏覽代碼

fix: loading

AykutSarac 2 年之前
父節點
當前提交
84fcb7621f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Loading/index.tsx

+ 1 - 1
src/components/Loading/index.tsx

@@ -50,7 +50,7 @@ const StyledMessage = styled.div`
 
 export const Loading: React.FC<LoadingProps> = ({ loading = true, message }) => (
   <Center mx="auto">
-    <StyledLoading visible={true}>
+    <StyledLoading visible={loading}>
       <Stack>
         <Image maw={150} src="./assets/rocket_ship.webp" alt="loading image" />
         <Title size="4rem">