From 09a05f97952f5f84770f4296ca3174744114afe4 Mon Sep 17 00:00:00 2001 From: SeanM322 Date: Mon, 13 May 2024 14:48:54 +0300 Subject: [PATCH] Add hover effect for admin links --- rair-front/src/App.tsx | 3 +- .../Header/AdminPanel/AdminPanel.tsx | 61 ++--- .../adminViews/ImportAndTransfer.tsx | 12 + .../adminViews/ImportExternalContracts.tsx | 2 +- .../components/adminViews/transferTokens.tsx | 1 + .../video/videoUpload/videoUpload.tsx | 240 ------------------ 6 files changed, 41 insertions(+), 278 deletions(-) create mode 100644 rair-front/src/components/adminViews/ImportAndTransfer.tsx diff --git a/rair-front/src/App.tsx b/rair-front/src/App.tsx index f65e16be6..221fbd20d 100644 --- a/rair-front/src/App.tsx +++ b/rair-front/src/App.tsx @@ -32,6 +32,7 @@ import ListCollections from './components/creatorStudio/ListCollections'; import WorkflowSteps from './components/creatorStudio/workflowSteps'; import DemoMediaUpload from './components/DemoMediaUpload/DemoMediaUpload'; import Footer from './components/Footer/Footer'; +import ImportAndTransfer from './components/adminViews/ImportAndTransfer'; import WelcomeHeader from './components/FrontPage/WelcomeHeader'; import MainHeader from './components/Header/MainHeader'; import IframePage from './components/iframePage/IframePage'; @@ -568,7 +569,7 @@ function App() { // Token transfers { path: '/admin/transferNFTs', - content: TransferTokens, + content: ImportAndTransfer, constraint: loggedIn && !creatorViewsDisabled }, // Resale offers page diff --git a/rair-front/src/components/Header/AdminPanel/AdminPanel.tsx b/rair-front/src/components/Header/AdminPanel/AdminPanel.tsx index 638ec5f7e..9d596ec39 100644 --- a/rair-front/src/components/Header/AdminPanel/AdminPanel.tsx +++ b/rair-front/src/components/Header/AdminPanel/AdminPanel.tsx @@ -6,6 +6,7 @@ import { RootState } from '../../../ducks'; import { ColorStoreType } from '../../../ducks/colors/colorStore.types'; import { ContractsInitialType } from '../../../ducks/contracts/contracts.types'; import { TUsersInitialState } from '../../../ducks/users/users.types'; +import { TooltipBox } from '../../common/Tooltip/TooltipBox'; const AdminPanel = ({ creatorViewsDisabled, adminPanel, setAdminPanel }) => { const { minterInstance, diamondMarketplaceInstance, factoryInstance } = @@ -32,60 +33,48 @@ const AdminPanel = ({ creatorViewsDisabled, adminPanel, setAdminPanel }) => { backgroundColor: primaryColor }} className="container-admin-panel"> - {adminPanel && + { + adminPanel && adminRights === true && !creatorViewsDisabled && [ { - name: , - route: '/all', - disabled: !loggedIn - }, - { - name: