Fixed auth page and tracker

This commit is contained in:
MaxOvs19
2023-03-27 19:08:01 +03:00
parent fc51fbdb09
commit 76334aec99
9 changed files with 86 additions and 20 deletions

View File

@ -135,9 +135,10 @@
line-height: 32px;
color: #000000;
}
span {
font-size: 5px;
margin-left: 41px;
font-size: 12px;
margin-left: 0px;
}
}
@ -194,6 +195,10 @@
width: 424px;
left: 140px;
@media (max-width: 1440px) {
left: 79px;
}
@media (max-width: 1024px) {
left: 0;
width: 100%;

View File

@ -33,9 +33,11 @@ export const SliderWorkers = ({}) => {
const settings = {
infinite: true,
speed: 300,
speed: 1000,
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 4500,
};
if (window.innerWidth < 575) {

View File

@ -1,6 +1,6 @@
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import { setProject } from "../../../redux/projectsTrackerSlice";
import { setProject } from "../../../redux/projectsTrackerSlice";
import "./ModalCreate.scss";
@ -9,13 +9,17 @@ export const ModalCreate = ({ active, setActive, title }) => {
const dispatch = useDispatch();
function createName() {
let newItem = {
name: inputValue,
count: 0,
};
dispatch(setProject(newItem));
setActive(false);
setInputValue("")
if (inputValue === "") {
return;
} else {
let newItem = {
name: inputValue,
count: 0,
};
dispatch(setProject(newItem));
setActive(false);
setInputValue("");
}
}
return (