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