fixes #8
@ -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>
|
||||
|
@ -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">
|
||||
|
@ -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}
|
||||
|
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user