Procházet zdrojové kódy

hide support btn on widget

AykutSarac před 2 roky
rodič
revize
3e0fafbf91
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/components/SupportButton/index.tsx

+ 2 - 0
src/components/SupportButton/index.tsx

@@ -43,6 +43,8 @@ const StyledSupportButton = styled.a`
 `;
 `;
 
 
 export const SupportButton = () => {
 export const SupportButton = () => {
+  if (location.pathname.includes("widget")) return null;
+
   return (
   return (
     <StyledSupportButton
     <StyledSupportButton
       href="https://github.com/sponsors/AykutSarac"
       href="https://github.com/sponsors/AykutSarac"