update space footer

This commit is contained in:
Zhang Minghan 2023-11-17 17:13:06 +08:00
parent 3773c43f76
commit e8786732e5

View File

@ -19,6 +19,7 @@ import {
DialogTitle, DialogTitle,
} from "@/components/ui/dialog.tsx"; } from "@/components/ui/dialog.tsx";
import { getLanguage } from "@/i18n.ts"; import { getLanguage } from "@/i18n.ts";
import {selectAuthenticated} from "@/store/auth.ts";
function ChatSpace() { function ChatSpace() {
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
@ -26,6 +27,8 @@ function ChatSpace() {
const subscription = useSelector(isSubscribedSelector); const subscription = useSelector(isSubscribedSelector);
const cn = getLanguage() === "cn"; const cn = getLanguage() === "cn";
const auth = useSelector(selectAuthenticated);
return ( return (
<div className={`chat-product`}> <div className={`chat-product`}>
<Button variant={`outline`} onClick={() => setOpen(true)}> <Button variant={`outline`} onClick={() => setOpen(true)}>
@ -81,7 +84,7 @@ function ChatSpace() {
</DialogContent> </DialogContent>
</Dialog> </Dialog>
<div className={`space-footer`}> <div className={`space-footer`}>
{cn && ( {(cn && !auth) && (
<p> <p>
<a <a