Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Feat/update additional functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
AdebayoIbrahim committed Nov 13, 2023
1 parent ff220de commit 2fe5538
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/start/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ export const SidePane = () => {
// setAnimClick(false);
// }, 500);
// };
// const [panel, panelHide] = useState(true);
// if (panel) {
// return <div>banhide</div>;
// }
return (
<div
className="sidePane dpShad"
Expand Down
6 changes: 6 additions & 0 deletions src/utils/general.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@ String.prototype.count = function (c) {

export const SettingsSide = (props) => {
const [animClick, setAnimClick] = useState(false);
// const [panelHide, setPanelHide] = useState(false);
const dispatch = useDispatch();
const clickDisp = () => {
setAnimClick(true);
// setPanelHide(true);
setTimeout(() => {
setAnimClick(false);
dispatch({
type: props.click,
payload: props.payload,
});

dispatch({
type: "PANEHIDE",
});
}, 500);
};

Expand Down

0 comments on commit 2fe5538

Please sign in to comment.