diff --git a/pairent_frontend_react/src/pages/Tinder/index.jsx b/pairent_frontend_react/src/pages/Tinder/index.jsx index d8d2a58..8658e30 100644 --- a/pairent_frontend_react/src/pages/Tinder/index.jsx +++ b/pairent_frontend_react/src/pages/Tinder/index.jsx @@ -2,6 +2,7 @@ import React from "react"; import styled, { keyframes } from 'styled-components'; import SVGIcon from "../../components/UI/Icon/SVGIcon"; import Pagination from "../../components/UI/Pagination"; +import { HashLoader } from 'react-spinners'; const ChatSVG = () => { return ; @@ -101,7 +102,6 @@ const UserList = styled.div` margin: 32px auto; margin-bottom: 0; display: block; - width: fit-content; `; @@ -214,25 +214,32 @@ const RightBadge = styled(LeftBadge)` } `; -class Users extends React.Component { +const LoadingText = styled.h2` + text-align: center; + line-height: 3.5em; + margin: 0; + padding: 100px 0; + + & span { + display: inline; + margin: 0px auto + } +`; + +class UserDisplay extends React.Component { + + /** @type {{ value: import('../../API/User').User[] }} */ + props; + + constructor(props) { + super(props); + } + render() { return ( - - -

- Выбери соседа -
-
- - Не забывай, с этим человеком
- придется жить бок-о-бок! -
-

- +
123 { - [...Array(11)].map((_, i) => { - if (i == 5) return
; - + this.props.value.map(x => { return ( @@ -254,9 +261,50 @@ class Users extends React.Component { - ); + ) }) } +
+ ); + } +} + +class Users extends React.Component { + + constructor(props) { + super(props); + this.state = { + data: [{}], + loading: false + } + } + + componentDidMount() { + + } + + render() { + return ( + + +

+ Выбери соседа +
+
+ + Не забывай, с этим человеком
+ придется жить бок-о-бок! +
+

+ + { + this.state.loading ? + : + + Пожалуйста подождите, идет загрузка данных
+ +
+ }
)