Login: fix logo
This commit is contained in:
parent
c2fb9f583e
commit
85f092aa0d
@ -14,7 +14,7 @@ const App: React.FC<ILoginProps> = (props) => {
|
||||
const loginStore = initLoginStore(props.currentColorScheme);
|
||||
return (
|
||||
<MobxProvider {...loginStore}>
|
||||
<SimpleNav />
|
||||
<SimpleNav {...props} />
|
||||
<Switch>
|
||||
<Route path="/login/error">
|
||||
<InvalidRoute />
|
||||
|
@ -63,11 +63,11 @@ const Form: React.FC = ({ theme, setTheme, logoUrls }) => {
|
||||
};
|
||||
|
||||
const logo = Object.values(logoUrls)[1];
|
||||
const loginLogo = theme === Dark ? logo.darkPath : logo.lightPath;
|
||||
const logoUrl = !theme.isBase ? logo.path.dark : logo.path.light;
|
||||
|
||||
return (
|
||||
<LoginContainer id="code-page" theme={theme}>
|
||||
<img src={loginLogo} className="logo-wrapper" />
|
||||
<img src={logoUrl} className="logo-wrapper" />
|
||||
<Text
|
||||
id="workspace-title"
|
||||
fontSize="23px"
|
||||
|
@ -23,7 +23,6 @@ import SSOIcon from "../../../../../public/images/sso.react.svg";
|
||||
import { Dark, Base } from "@docspace/components/themes";
|
||||
import { useMounted } from "../helpers/useMounted";
|
||||
import { getBgPattern } from "@docspace/common/utils";
|
||||
import { ReactSVG } from "react-svg";
|
||||
|
||||
interface ILoginProps extends IInitialState {
|
||||
isDesktopEditor?: boolean;
|
||||
@ -176,7 +175,7 @@ const Login: React.FC<ILoginProps> = ({
|
||||
const bgPattern = getBgPattern(currentColorScheme.id);
|
||||
|
||||
const logo = Object.values(logoUrls)[1];
|
||||
const loginLogo = theme === Dark ? logo.darkPath : logo.lightPath;
|
||||
const logoUrl = !theme.isBase ? logo.path.dark : logo.path.light;
|
||||
|
||||
if (!mounted) return <></>;
|
||||
|
||||
@ -189,7 +188,7 @@ const Login: React.FC<ILoginProps> = ({
|
||||
bgPattern={bgPattern}
|
||||
>
|
||||
<ColorTheme themeId={ThemeType.LinkForgotPassword} theme={theme}>
|
||||
<img src={loginLogo} className="logo-wrapper" />
|
||||
<img src={logoUrl} className="logo-wrapper" />
|
||||
<Text
|
||||
fontSize="23px"
|
||||
fontWeight={700}
|
||||
|
Loading…
Reference in New Issue
Block a user