diff --git a/app/soapbox/features/auth_layout/index.tsx b/app/soapbox/features/auth_layout/index.tsx index eca951abd..81035b534 100644 --- a/app/soapbox/features/auth_layout/index.tsx +++ b/app/soapbox/features/auth_layout/index.tsx @@ -1,8 +1,10 @@ import React from 'react'; import { Link, Redirect, Route, Switch } from 'react-router-dom'; +import SvgIcon from 'soapbox/components/ui/icon/svg-icon'; import BundleContainer from 'soapbox/features/ui/containers/bundle_container'; import { NotificationsContainer } from 'soapbox/features/ui/util/async-components'; +import { useAppSelector, useSoapboxConfig } from 'soapbox/hooks'; import { Card, CardBody } from '../../components/ui'; import LoginPage from '../auth_login/components/login_page'; @@ -12,43 +14,56 @@ import PasswordResetConfirm from '../auth_login/components/password_reset_confir import Verification from '../verification'; import EmailPassthru from '../verification/email_passthru'; -const AuthLayout = () => ( -
-
+const AuthLayout = () => { + const { logo } = useSoapboxConfig(); + const siteTitle = useAppSelector(state => state.instance.title); -
-
- - Logo - -
+ return ( +
+
-
-
- - - - - - - - - {/* */} +
+
+ + {logo ? ( + {siteTitle} + ) : ( + + )} + +
- - - - - +
+
+ + + + + + + + + {/* */} + + + + + + +
-
-
+ - - {(Component) => } - -
-); + + {(Component) => } + +
+ ); +}; export default AuthLayout; diff --git a/app/soapbox/features/ui/components/navbar.tsx b/app/soapbox/features/ui/components/navbar.tsx index 8b7f9286b..5a075eead 100644 --- a/app/soapbox/features/ui/components/navbar.tsx +++ b/app/soapbox/features/ui/components/navbar.tsx @@ -24,7 +24,7 @@ const Navbar = () => { const singleUserMode = soapboxConfig.get('singleUserMode'); // In demo mode, use the Soapbox logo - const logo = settings.get('demo') ? require('images/soapbox-logo.svg') : soapboxConfig.get('logo'); + const logo = settings.get('demo') ? require('images/soapbox-logo.svg') : soapboxConfig.logo; const onOpenSidebar = () => dispatch(openSidebar());