Skip to content

Commit

Permalink
remove unused const - Psiphon change
Browse files Browse the repository at this point in the history
  • Loading branch information
rosalinddeibert committed Oct 26, 2023
1 parent 338274d commit bf3d637
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions public/app/core/components/Login/LoginLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ export const LoginLayout = ({ children, branding, isChangingPassword }: React.Pr
const [startAnim, setStartAnim] = useState(false);
const subTitle = branding?.loginSubtitle ?? Branding.GetLoginSubTitle();
const loginLogo = branding?.loginLogo;
const hideEdition = branding?.hideEdition ?? Branding.HideEdition;
// Psiphon change - set hideFooter to true by default
branding.hideFooter = true;
// Psiphon change - remove unused const

useEffect(() => setStartAnim(true), []);

// Psiphon changes - remove loginboxbackground styling because it looks bad with custom
// image, remove 'Welcome to Grafana' message
// image, remove 'Welcome to Grafana' message. Remove footer.
return (
<Branding.LoginBackground
className={cx(loginStyles.container, startAnim && loginStyles.loginAnim, branding?.loginBackground)}
Expand All @@ -55,7 +53,6 @@ export const LoginLayout = ({ children, branding, isChangingPassword }: React.Pr
<div className={loginStyles.loginOuterBox}>{children}</div>
</div>
</div>
{branding?.hideFooter ? <></> : <Footer hideEdition={hideEdition} customLinks={branding?.footerLinks} />}
</Branding.LoginBackground>
);
};
Expand Down

0 comments on commit bf3d637

Please sign in to comment.