Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 20 additions & 0 deletions src/components/Bloggers/BlogerTestList/BloggerNoTest.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.blogerNoTest {
height: 150px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;

background: #2E3338;
border-radius: 5px;

text-align: center;
font-family: sans-serif;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
text-align: center;

color: #AEB5BC;
}
7 changes: 7 additions & 0 deletions src/components/Bloggers/BlogerTestList/BloggerNoTest.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React, { FC, memo } from 'react';
import { Box } from '@mui/material';
import styles from './BloggerNoTest.module.scss';

const BloggerNoTest: FC = () => (<Box className={styles.blogerNoTest}>Скоро анонс</Box>);

export default memo(BloggerNoTest);
11 changes: 3 additions & 8 deletions src/pages/BloggerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import BtnEmail from '../components/Buttons/BtnEmail/BtnEmail';
import FooterPolicy from '../components/Footers/FooterPolicy';
import SubcriptionCard from '../components/Profile/TestCard/SubcriptionCard/SubcriptionCard';
import TestCardLock from '../components/Profile/TestCard/TestCardLock/TestCardLock';
import BloggerNoTest from '../components/Bloggers/BlogerTestList/BloggerNoTest';

const BloggerPage = () => {
const params = useParams();
Expand Down Expand Up @@ -176,7 +177,7 @@ const BloggerPage = () => {
height={'8rem'}
/>
)} */}
{ testList ? testList.map((test, index) => (
{ testList?.length ? testList?.map((test, index) => (

(test.type && test.type === 'game') ? (
<TestCardLock
Expand Down Expand Up @@ -252,13 +253,7 @@ const BloggerPage = () => {
/>
)
)) : (
<Skeleton
sx={{ bgcolor: '#2f363c', marginTop: '1rem' }}
variant="rounded"
animation="wave"
width={'100%'}
height={'15rem'}
/>
<BloggerNoTest />
)}
<FooterPolicy language={language} />
</Container>
Expand Down