From 649d6630173b34897ff9d992d2883da55f84ea9e Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Wed, 8 May 2024 17:18:57 +1000 Subject: [PATCH] disable edit and share buttons on downloaded themes --- src/interface/components/ThemeCover.tsx | 10 +++++++--- src/interface/types/CustomThemes.ts | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/interface/components/ThemeCover.tsx b/src/interface/components/ThemeCover.tsx index 335e1189..a06955b0 100644 --- a/src/interface/components/ThemeCover.tsx +++ b/src/interface/components/ThemeCover.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { CustomTheme, DownloadedTheme } from '../types/CustomThemes'; import browser from 'webextension-polyfill'; import { ArrowUpOnSquareIcon, PencilIcon } from '@heroicons/react/24/outline'; @@ -52,6 +52,10 @@ export const ThemeCover: React.FC = ({ }); }; + useEffect(() => { + console.log(!theme.webURL); + }); + return (