mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-15 12:45:24 +00:00
web/about: about page routing & navigation
This commit is contained in:
@@ -10,6 +10,17 @@ const defaultSettingsPage = () => {
|
||||
return "/settings/appearance";
|
||||
}
|
||||
|
||||
const defaultAboutPage = () => {
|
||||
if (browser) {
|
||||
if (window.innerWidth <= 750) {
|
||||
return "/about";
|
||||
}
|
||||
}
|
||||
|
||||
return "/about/general";
|
||||
}
|
||||
|
||||
export {
|
||||
defaultSettingsPage,
|
||||
defaultAboutPage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user