Skip to content

Commit

Permalink
Merge pull request #21 from 001elijah/sidebar
Browse files Browse the repository at this point in the history
fix modal
  • Loading branch information
001elijah authored Jun 23, 2023
2 parents 3cef876 + 877f631 commit 3946b7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Modal/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { BackdropModal } from '../BackdropMain/BackdropMain';
import { selectorTheme } from 'redux/Auth/authSelectors';
import s from './Modal.module.scss';
import svg from 'assets/icons/sprite.svg';
import clsx from 'clsx';

export const Modal = ({ title, onClose, children, className = '' }) => {
export const Modal = ({ title, onClose, children }) => {
const theme = useSelector(selectorTheme);
const [, setThemeClass] = useState('');
console.log();
Expand Down Expand Up @@ -55,5 +54,4 @@ Modal.propTypes = {
title: PropTypes.string.isRequired,
onClose: PropTypes.func.isRequired,
children: PropTypes.node.isRequired,
className: PropTypes.string,
};

0 comments on commit 3946b7e

Please sign in to comment.