Преглед изворни кода

hide support btn on widget

AykutSarac пре 2 година
родитељ
комит
3e0fafbf91
1 измењених фајлова са 2 додато и 0 уклоњено
  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"