mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
redirect to /signup for "my data" logged out case
This commit is contained in:
1 parent
480212a3dc
commit
0c612ff303
4 files changed
+4
-4
No files matched your search
@@ -11,7 +11,7 @@ function UploadChoiceFc(props: Props) {
|
||||
let history = useHistory();
|
||||
|
||||
if (!props.sessionWrapper.isLoggedIn()) {
|
||||
history.push('/');
|
||||
history.push('/signup');
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -17,7 +17,7 @@ function UploadTtsModelFc(props: Props) {
|
||||
const [titleInvalidReason, setTitleInvalidReason] = useState('')
|
||||
|
||||
if (!props.sessionWrapper.isLoggedIn()) {
|
||||
history.push('/');
|
||||
history.push('/signup');
|
||||
}
|
||||
|
||||
const handleDownloadUrlChange = (ev: React.FormEvent<HTMLInputElement>) => {
|
||||
|
||||
@@ -17,7 +17,7 @@ function UploadW2lPhotoFc(props: Props) {
|
||||
const [titleInvalidReason, setTitleInvalidReason] = useState('')
|
||||
|
||||
if (!props.sessionWrapper.isLoggedIn()) {
|
||||
history.push('/');
|
||||
history.push('/signup');
|
||||
}
|
||||
|
||||
const handleDownloadUrlChange = (ev: React.FormEvent<HTMLInputElement>) => {
|
||||
|
||||
@@ -17,7 +17,7 @@ function UploadW2lVideoFc(props: Props) {
|
||||
const [titleInvalidReason, setTitleInvalidReason] = useState('')
|
||||
|
||||
if (!props.sessionWrapper.isLoggedIn()) {
|
||||
history.push('/');
|
||||
history.push('/signup');
|
||||
}
|
||||
|
||||
const handleDownloadUrlChange = (ev: React.FormEvent<HTMLInputElement>) => {
|
||||
|
||||
Reference in new issue
Block a user