From 1ad0424aceaf4ed3ee8964ccdb7416d0fefb8dc0 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 12 Nov 2025 14:42:02 +0330 Subject: [PATCH] fix problem --- src/index.css | 9 +++++ src/pages/editor/Editor.tsx | 4 +-- src/pages/editor/components/EditorSidebar.tsx | 36 +++++++++++++++++++ src/pages/home/Home.tsx | 4 +-- src/shared/Header.tsx | 1 + src/shared/SideBar.tsx | 4 +-- 6 files changed, 52 insertions(+), 6 deletions(-) diff --git a/src/index.css b/src/index.css index 9d2af74..c20ca6a 100644 --- a/src/index.css +++ b/src/index.css @@ -47,3 +47,12 @@ textarea::placeholder { --color-description: #c3c7dd; --color-desc: #8c90a3; } + +::-webkit-scrollbar { + display: none; +} +body, +html { + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE 10+ */ +} diff --git a/src/pages/editor/Editor.tsx b/src/pages/editor/Editor.tsx index 68bfb04..6f248af 100644 --- a/src/pages/editor/Editor.tsx +++ b/src/pages/editor/Editor.tsx @@ -1,7 +1,7 @@ -import React from 'react' +import { type FC } from 'react' import EditorSidebar from './components/EditorSidebar' -const Editor = () => { +const Editor: FC = () => { return (
diff --git a/src/pages/editor/components/EditorSidebar.tsx b/src/pages/editor/components/EditorSidebar.tsx index ca8e198..d404871 100644 --- a/src/pages/editor/components/EditorSidebar.tsx +++ b/src/pages/editor/components/EditorSidebar.tsx @@ -2,6 +2,7 @@ import Logo from "@/assets/images/logo.svg"; import { clx } from "@/helpers/utils"; import { useSharedStore } from "@/shared/store/sharedStore"; +import { DocumentUpload, Element, Gallery, Grid8, Link, MouseSquare, Shapes, Sticker, Text, VideoSquare } from "iconsax-react"; const EditorSidebar = () => { const { openSidebar, setOpenSidebar } = useSharedStore(); @@ -21,6 +22,41 @@ const EditorSidebar = () => { لوگو دانک
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ ); diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx index b52e216..af548ca 100644 --- a/src/pages/home/Home.tsx +++ b/src/pages/home/Home.tsx @@ -1,6 +1,6 @@ -import React from 'react' +import { type FC } from 'react' -const Home = () => { +const Home: FC = () => { return (
Home
) diff --git a/src/shared/Header.tsx b/src/shared/Header.tsx index c874609..6b7f03a 100644 --- a/src/shared/Header.tsx +++ b/src/shared/Header.tsx @@ -46,6 +46,7 @@ const Header: FC = ({ hasMainSidebar = true, sidebarSize = 'default useEffect(() => { setSearch('') + // eslint-disable-next-line react-hooks/exhaustive-deps }, [location.pathname]) return ( diff --git a/src/shared/SideBar.tsx b/src/shared/SideBar.tsx index 86f29f6..8f07e2d 100644 --- a/src/shared/SideBar.tsx +++ b/src/shared/SideBar.tsx @@ -45,8 +45,8 @@ const SideBar: FC = () => {