mirror of
https://github.com/coaidev/coai.git
synced 2025-05-24 23:40:14 +09:00
update space footer
This commit is contained in:
parent
3773c43f76
commit
e8786732e5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user