Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Jun 28, 2023
1 parent a9d8143 commit af30654
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/BoardModalWindow/BoardModalWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export const BoardModalWindow = ({

BoardModalWindow.propTypes = {
modalTitle: PropTypes.string.isRequired,
inputTitle: PropTypes.string.isRequired,
inputTitle: PropTypes.string,
titleModalButton: PropTypes.string.isRequired,
onSubmit: PropTypes.func,
handleToggleModal: PropTypes.func,
id: PropTypes.func,
activeIcon: PropTypes.string.isRequired,
activeIcon: PropTypes.string,
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ import { currentBoard } from '../../redux/Boards/boardsSelectors';

export const BoxRadioBackgroundGroup = ({ valueChange }) => {
const board = useSelector(currentBoard);
const currentBackgroud = board.background;
const currentBackgroud = board?.background;
const theme = useSelector(selectorTheme);

const [background, setBackground] = useState(currentBackgroud);
// const handleChange = e => {
// setColor(e.target.value);
// valueColor(color);
// console.log(color);
// };
const [background, setBackground] = useState(currentBackgroud || '');

const handleCheked = e => {
setBackground(e.target.value);
Expand Down
1 change: 0 additions & 1 deletion src/components/BoxRadioIconGroup/BoxRadioIconGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const BoxRadioIconGroup = ({ valueChange, activeIcon }) => {

const handleChange = e => {
setIcon(e.target.value);
console.log(e.target.value);
// onValue(icon);
};

Expand Down
1 change: 1 addition & 0 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const Sidebar = () => {
<Logout theme={theme} />
{showModalWindow && (
<BoardModalWindow

titleModalButton="Create"
modalTitle="New board"
handleToggleModal={handleModalWindowClose}
Expand Down

0 comments on commit af30654

Please sign in to comment.