This commit is contained in:
DmitriyB
2023-02-06 11:22:23 +05:00
parent 8e0f4df16a
commit 9f0de105d6
12 changed files with 86 additions and 75 deletions
+2 -9
View File
@@ -8,14 +8,8 @@ import { ControlPanel } from "../ControlPanel/ControlPanel";
import { AnimatePresence, motion } from "framer-motion";
import { sidebarVariants, popupAnimation } from "../../utils/animationProps";
type link = {
id: string;
};
const userLocal = {
id: Math.floor(Math.random() * 100),
};
export const Sidebar: React.FC<any> = ({ closeStream, data }) => {
export const Sidebar: React.FC<any> = ({ closeStream }) => {
const [open, setOpen] = useState(true);
const [popup, setPopup] = useState({
popup1: false,
@@ -23,7 +17,6 @@ export const Sidebar: React.FC<any> = ({ closeStream, data }) => {
});
const [selected, setSelected] = useState(false);
const [icon, setIcon] = useState("");
const [isMuted, setMuted] = useState(true);
@@ -100,7 +93,7 @@ export const Sidebar: React.FC<any> = ({ closeStream, data }) => {
animate={"show"}
exit={"hidden"}
>
<PopupShare data={data} setClose={handleClosePopups}></PopupShare>
<PopupShare setClose={handleClosePopups}></PopupShare>
</motion.div>
)}