Skip to content

Commit

Permalink
fix unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Jun 21, 2023
1 parent 3059939 commit a9d6b21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/HeaderDashBoard/HeaderDashBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const HeaderDashBoard = ({ title }) => {
const [showModalWindow, setShowModalWindow] = useState(false);
const handleModalWindowOpen = () => setShowModalWindow(true);
const handleModalWindowClose = () => setShowModalWindow(false);
const [color, setColor] = useState('');
// const [color, setColor] = useState('');
return (
<>
<div className={clsx(s.HeaderDash, s[theme])}>
Expand All @@ -32,7 +32,9 @@ export const HeaderDashBoard = ({ title }) => {
</button>
{showModalWindow && (
<BackdropModal closeModal={handleModalWindowClose}>
<ModalFilter closeModal={handleModalWindowClose} color={setColor} />
<ModalFilter closeModal={handleModalWindowClose}
// color={setColor}
/>
</BackdropModal>
)}
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/ModalFilter/LabelBlock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ InputBlock.propTypes = {
};

export const LabelBlock = ({ newField }) => {
console.log(newField)
const theme = useSelector(selectorTheme);
const [field, setField] = useState(' ');
console.log(field)
const handleOnClick = e => {
setField(e.currentTarget.value);
};
Expand Down
1 change: 1 addition & 0 deletions src/components/ModalFilter/ModalFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useSelector } from 'react-redux';
import clsx from 'clsx';

export const ModalFilter = ({ closeModal, color }) => {
console.log(color)
const [colorFilter, setColorFilter] = useState('');
const theme = useSelector(selectorTheme);

Expand Down

0 comments on commit a9d6b21

Please sign in to comment.