From d6686b8e2dfd4fe59e864814f8635a95bba7b759 Mon Sep 17 00:00:00 2001 From: sonnguyenkieio Date: Thu, 9 Sep 2021 08:25:28 +0700 Subject: [PATCH] :sparkles: feat: Loading Common --- .../common/LoadingCommon/LoadingCommon.module.scss | 1 - src/components/common/LoadingCommon/LoadingCommon.tsx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/common/LoadingCommon/LoadingCommon.module.scss b/src/components/common/LoadingCommon/LoadingCommon.module.scss index 12eaed54d..f8bca225d 100644 --- a/src/components/common/LoadingCommon/LoadingCommon.module.scss +++ b/src/components/common/LoadingCommon/LoadingCommon.module.scss @@ -12,7 +12,6 @@ 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } - &.small { height: 5rem; diff --git a/src/components/common/LoadingCommon/LoadingCommon.tsx b/src/components/common/LoadingCommon/LoadingCommon.tsx index bc2b4e53a..20377c0ed 100644 --- a/src/components/common/LoadingCommon/LoadingCommon.tsx +++ b/src/components/common/LoadingCommon/LoadingCommon.tsx @@ -3,17 +3,16 @@ import React from "react"; import s from './LoadingCommon.module.scss' interface LoadingCommonProps { - visible: boolean size?: "small" | "default" | "large", children? : React.ReactNode; } -const LoadingCommon = ({ visible, size="default", children }: LoadingCommonProps) => { +const LoadingCommon = ({ size="default", children }: LoadingCommonProps) => { return ( <> { - visible &&
{children}