removed button as modal will disappear when user is no longer new

This commit is contained in:
rsandb
2023-01-16 17:13:28 -06:00
parent 5d3cd5a4e7
commit 87572ad589
@@ -1,7 +1,5 @@
import { Box, Button, Divider, Text, useColorMode } from "@chakra-ui/react";
import { Box, Divider, Text, useColorMode } from "@chakra-ui/react";
import { useSession } from "next-auth/react";
import { useState } from "react";
import { FiX } from "react-icons/fi";
export function WelcomeCard() {
const { colorMode } = useColorMode();
@@ -10,8 +8,6 @@ export function WelcomeCard() {
const { data: session } = useSession();
const [showCard, setShowCard] = useState("true");
if (!session) {
return <></>;
}
@@ -21,7 +17,6 @@ export function WelcomeCard() {
<Box
bgGradient="linear(to-r, blue.300, purple.500)"
borderRadius="xl"
display={showCard}
p="1px"
shadow="base"
position="relative"
@@ -41,10 +36,6 @@ export function WelcomeCard() {
<Divider my="4" />
<Text>Complete tasks to help train the model and earn points.</Text>
</Box>
<Button position="absolute" top="2" right="2" p="0" size="sm" onClick={() => setShowCard("none")}>
<FiX />
</Button>
</Box>
</Box>
</>