diff --git a/build.zip b/build.zip new file mode 100644 index 0000000..b1dbf5a Binary files /dev/null and b/build.zip differ diff --git a/src/views/BlindBox/index.tsx b/src/views/BlindBox/index.tsx index 615eef3..8f003ed 100644 --- a/src/views/BlindBox/index.tsx +++ b/src/views/BlindBox/index.tsx @@ -14,6 +14,7 @@ import { checkBuyResult } from 'services/blindBox' import useRefresh from 'hooks/useRefresh' import useToast from 'hooks/useToast' import { UnOpenModel } from 'components/Modal' +import Empty from 'components/Empty' import tokens from 'config/constants/tokens' import { ListProp } from 'types/blindBox' import Header from './component/Header' @@ -169,6 +170,11 @@ const AuthorizationBtn = styled(Button)` width: 500px; } ` +const EmptyFlex = styled(Flex)` + width: 100%; + align-items: center; + justify-content: center; +` const BlindBox: React.FC = () => { const { t } = useTranslation() @@ -357,17 +363,24 @@ const BlindBox: React.FC = () => { return ( {/* */} - - {renderContent()} - + {blindBoxList && blindBoxList.length > 0 && ( + + {renderContent()} + + )} + {blindBoxList && blindBoxList.length === 0 && ( + + + + )} ) }