feat: update appearance selector (#645)

This commit is contained in:
boojack
2022-12-01 20:57:19 +08:00
committed by GitHub
parent eaebc6dcef
commit 7c6d7226f5
23 changed files with 157 additions and 118 deletions

View File

@ -18,6 +18,7 @@ const router = createBrowserRouter([
} catch (error) {
// do nth
}
return null;
},
},
{
@ -37,6 +38,7 @@ const router = createBrowserRouter([
} else if (isNullorUndefined(user)) {
return redirect("/explore");
}
return null;
},
},
{
@ -54,6 +56,7 @@ const router = createBrowserRouter([
if (isNullorUndefined(host)) {
return redirect("/auth");
}
return null;
},
},
{
@ -71,6 +74,7 @@ const router = createBrowserRouter([
if (isNullorUndefined(host)) {
return redirect("/auth");
}
return null;
},
},
{
@ -88,6 +92,7 @@ const router = createBrowserRouter([
if (isNullorUndefined(host)) {
return redirect("/auth");
}
return null;
},
},
]);