move test components to their folder
This commit is contained in:
parent
6725ac6966
commit
9a70756d50
|
@ -64,7 +64,7 @@ const Header = function () {
|
|||
</a>
|
||||
<VerticalLine />
|
||||
<Link to='/'>
|
||||
<PairentLogo>Pairent</PairentLogo>
|
||||
<PairentLogo>Точка.</PairentLogo>
|
||||
</Link>
|
||||
<Link to="/">
|
||||
<LocationButton>
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
import "./styles/PsychTestHeader.css";
|
||||
|
||||
const PsychTestHeader = () => {
|
||||
return (
|
||||
<div className="header">
|
||||
<button type="button" className="header__btn">
|
||||
Вернуться назад
|
||||
</button>
|
||||
<h1 className="header__title">Тест на совместимость</h1>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PsychTestHeader;
|
|
@ -1,6 +1,6 @@
|
|||
import PsychTestQuestion from "../PsychTestQuestion";
|
||||
import PsychTestQuestion from "../../../components/PsychTestQuestion";
|
||||
import React, { useState } from "react";
|
||||
import PsychTestAddResult from "../../API/PsychTestAddResult";
|
||||
import PsychTestAddResult from "../../../API/PsychTestAddResult";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import "./styles/PsychTestForm.css";
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
import { styled } from "styled-components";
|
||||
import "./styles/PsychTestHeader.css";
|
||||
|
||||
const Header = styled.div`
|
||||
display: flex;
|
||||
padding-left: 40px;
|
||||
padding-top: 14px;
|
||||
align-items: center;
|
||||
margin-bottom: 55px;
|
||||
|
||||
& h1 {
|
||||
font-size: 20pt;
|
||||
}
|
||||
& button {
|
||||
color: #bababa;
|
||||
font-size: 15px;
|
||||
width: 180px;
|
||||
height: 36px;
|
||||
background-color: white;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 12px;
|
||||
margin-right: 13px;
|
||||
}
|
||||
`;
|
||||
|
||||
const PsychTestHeader = () => {
|
||||
return (
|
||||
<Header>
|
||||
<button type="button" onClick={window.history.back()}>
|
||||
Вернуться назад
|
||||
</button>
|
||||
<h1>Тест на совместимость</h1>
|
||||
</Header>
|
||||
);
|
||||
};
|
||||
|
||||
export default PsychTestHeader;
|
|
@ -1,5 +1,5 @@
|
|||
import PsychTestForm from "../../components/PsychTestForm";
|
||||
import PsychTestHeader from "../../components/PsychTestHeader";
|
||||
import PsychTestForm from "./PsychTestForm";
|
||||
import PsychTestHeader from "./PsychTestHeader";
|
||||
|
||||
const PsychTest = () => {
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue