diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index b95e490..9ab4bb7 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -3892,48 +3892,6 @@ } } -.section-add-file { - position: relative; - - .section-drop-down-list { - position: absolute; - left: 80%; - top: 50%; - max-height: 0; - color: v.$text-p; - font-size: 16px; - border-radius: 20px; - padding: 0; - border: none; - width: fit-content; - z-index: 2; - font-weight: 500; - - background: #ffffff00; - overflow: hidden; - transition: all 0.5s ease; - transform: translateY(-50%); - - &.opened { - max-height: 500px; - padding: 15px 10px; - box-shadow: 0 4px 20px #00000014; - background: v.$white; - } - - a { - white-space: nowrap; - color: v.$p-color; - opacity: 0.7; - } - - a:hover { - transition: all 0.3s ease; - opacity: 1; - } - } -} - .violations-table { background: white; border-radius: 20px; diff --git a/src/app/ui/dashboard/new/dashboard-user-files.tsx b/src/app/ui/dashboard/new/dashboard-user-files.tsx index b8df510..6a9ac94 100644 --- a/src/app/ui/dashboard/new/dashboard-user-files.tsx +++ b/src/app/ui/dashboard/new/dashboard-user-files.tsx @@ -2,11 +2,9 @@ import { useQuery } from '@tanstack/react-query'; import { getUserFilesData } from '@/app/actions/fileEntity'; -import { useEffect, useState, useRef } from 'react'; import { FileTypeIcon } from '@/app/components/FileTypeIcon'; import { convertBytes } from '@/app/lib/convertBytes'; import { useTranslations } from 'next-intl'; -import { useClickOutside } from '@/app/hooks/useClickOutside'; import Link from 'next/link'; type FileItem = { @@ -71,15 +69,6 @@ export default function DashboardUserFiles() { }); const t = useTranslations('Global'); - const [openDropDownList, setOpenDropDownList] = useState(false); - const dropDownList = useRef(null); - useClickOutside( - dropDownList, - () => { - setOpenDropDownList(false) - }, - openDropDownList - ); const formatDate = (timestamp: number) => { const date = new Date(timestamp); @@ -97,30 +86,11 @@ export default function DashboardUserFiles() { {t('your-files')}