Explorar o código

hide support btn on widget

AykutSarac %!s(int64=2) %!d(string=hai) anos
pai
achega
3e0fafbf91
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 = () => {
+  if (location.pathname.includes("widget")) return null;
+
   return (
     <StyledSupportButton
       href="https://github.com/sponsors/AykutSarac"