mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-09 00:20:03 +08:00
removed button as modal will disappear when user is no longer new
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user