This commit is contained in:
Mikola 2024-01-12 19:12:01 +03:00
parent a24ce7d7a1
commit d08b6e9be8
4 changed files with 30 additions and 8 deletions

View File

@ -44,7 +44,11 @@ const AllTaskTableItem = ({ task, projects }) => {
</div>
</td>
<td>
{new Date(task.timers.reduce((acc, cur) => acc + cur.deltaSeconds, 0) * 1000).toISOString().slice(11, 19)}
{new Date(
task.timers.reduce((acc, cur) => acc + cur.deltaSeconds, 0) * 1000
)
.toISOString()
.slice(11, 19)}
</td>
<td>{new Date(task.created_at).toLocaleDateString()}</td>
<td>{new Date(task.dead_line).toLocaleDateString()}</td>

View File

@ -18,7 +18,11 @@ const ArchiveTasksItem = ({ task, index }) => {
</td>
<td className="archive__completeTask__time">
<p>
{new Date(task.timers.reduce((acc, cur) => acc + cur.deltaSeconds, 0) * 1000).toISOString().slice(11, 19)}
{new Date(
task.timers.reduce((acc, cur) => acc + cur.deltaSeconds, 0) * 1000
)
.toISOString()
.slice(11, 19)}
</p>
</td>
<td className="archive__completeTask__info">

View File

@ -16,7 +16,12 @@ export const ModalTrackerRegistration = ({ setModalReset, email }) => {
для активации вашего аккаунта на почту
<br /> <span>{email}</span>
</p>
<button onClick={() => setModalReset(false)} className="modalConfirmTracker__btn">Понятно</button>
<button
onClick={() => setModalReset(false)}
className="modalConfirmTracker__btn"
>
Понятно
</button>
<img
onClick={() => setModalReset(false)}
src={close}

View File

@ -15,8 +15,8 @@ import "./trackerRegistration.scss";
export const TrackerRegistration = () => {
const [modalConfirmOpen, setModalConfirm] = useState(false);
const [inputs, setInputs] = useState({
email: ''
})
email: ""
});
return (
<div className="trackerRegistration">
@ -41,8 +41,14 @@ export const TrackerRegistration = () => {
<span>Ваш e-mail</span>
<input
placeholder="E-mail"
onChange={(e) => setInputs((prevState) => ({...prevState, email:e.target.value }))}
type="email" />
onChange={(e) =>
setInputs((prevState) => ({
...prevState,
email: e.target.value
}))
}
type="email"
/>
</div>
<div className="trackerRegistration__inputContainer">
<span>Придумайте пароль</span>
@ -72,7 +78,10 @@ export const TrackerRegistration = () => {
</div>
{modalConfirmOpen && (
<ModalLayout active={modalConfirmOpen} setActive={setModalConfirm}>
<ModalTrackerRegistration setModalReset={setModalConfirm} email={inputs.email} />
<ModalTrackerRegistration
setModalReset={setModalConfirm}
email={inputs.email}
/>
</ModalLayout>
)}
<Footer />