소스 검색

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"