Skip to content

Commit

Permalink
[website] close annoying popup button
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Aug 1, 2022
1 parent b68e98f commit cb58166
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion website/components/AdDetector.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Button,
CloseButton,
Heading,
Modal,
ModalBody,
Expand All @@ -9,6 +10,7 @@ import {
ModalOverlay,
Stack,
Text,
Tooltip,
useDisclosure,
VStack,
} from "@chakra-ui/react";
Expand Down Expand Up @@ -76,8 +78,16 @@ const AdDetector: FC<{ children: ReactNode }> = ({ children }) => {
justifyContent="space-between"
alignItems="center"
p="5"
pos="relative"
>
<Heading></Heading>
<Tooltip label="You made me sad 😢">
<CloseButton
pos="absolute"
right="5"
variant="ghost"
onClick={() => setAdBlockEnabled(false)}
/>
</Tooltip>
<VStack spacing="2" alignItems="flex-start">
<Heading size="sm">Here&apos;s something interesting:</Heading>
<Heading size="md">
Expand Down

0 comments on commit cb58166

Please sign in to comment.