tsc
This commit is contained in:
parent
56aceb589d
commit
34effef810
5 changed files with 15 additions and 8 deletions
|
@ -11,7 +11,7 @@ import type {
|
|||
SetDialogBoxAttributesV2,
|
||||
} from "@ente/shared/components/DialogBoxV2/types";
|
||||
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||
import AppNavbar from "@ente/shared/components/Navbar/app";
|
||||
import { AppNavbar } from "@ente/shared/components/Navbar/app";
|
||||
import { useLocalState } from "@ente/shared/hooks/useLocalState";
|
||||
import HTTPService from "@ente/shared/network/HTTPService";
|
||||
import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";
|
||||
|
|
|
@ -18,7 +18,7 @@ import type {
|
|||
} from "@ente/shared/components/DialogBoxV2/types";
|
||||
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||
import { MessageContainer } from "@ente/shared/components/MessageContainer";
|
||||
import AppNavbar from "@ente/shared/components/Navbar/app";
|
||||
import { AppNavbar } from "@ente/shared/components/Navbar/app";
|
||||
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
|
||||
import { useLocalState } from "@ente/shared/hooks/useLocalState";
|
||||
import HTTPService from "@ente/shared/network/HTTPService";
|
||||
|
|
|
@ -24,7 +24,7 @@ import type {
|
|||
} from "@ente/shared/components/DialogBoxV2/types";
|
||||
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
||||
import { MessageContainer } from "@ente/shared/components/MessageContainer";
|
||||
import AppNavbar from "@ente/shared/components/Navbar/app";
|
||||
import { AppNavbar } from "@ente/shared/components/Navbar/app";
|
||||
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
|
||||
import { useLocalState } from "@ente/shared/hooks/useLocalState";
|
||||
import HTTPService from "@ente/shared/network/HTTPService";
|
||||
|
|
|
@ -10,9 +10,11 @@ interface EnteLogoProps {
|
|||
height?: number;
|
||||
}
|
||||
|
||||
export const EnteLogo: React.FC<EnteLogoProps> = ({ height }) => (
|
||||
<LogoImage height={height ?? 18} alt="logo" src="/images/ente.svg" />
|
||||
);
|
||||
export const EnteLogo: React.FC<EnteLogoProps> = ({ height }) => {
|
||||
return (
|
||||
<LogoImage height={height ?? 18} alt="logo" src="/images/ente.svg" />
|
||||
);
|
||||
};
|
||||
|
||||
const LogoImage = styled("img")`
|
||||
margin: 3px 0;
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
import React from "react";
|
||||
import { CenteredFlex } from "../../components/Container";
|
||||
import { EnteLogo } from "../EnteLogo";
|
||||
import NavbarBase from "./base";
|
||||
|
||||
export default function AppNavbar({ isMobile }) {
|
||||
interface AppNavbarProps {
|
||||
isMobile: boolean;
|
||||
}
|
||||
|
||||
export const AppNavbar: React.FC<AppNavbarProps> = ({ isMobile }) => {
|
||||
return (
|
||||
<NavbarBase isMobile={isMobile}>
|
||||
<CenteredFlex>
|
||||
|
@ -10,4 +15,4 @@ export default function AppNavbar({ isMobile }) {
|
|||
</CenteredFlex>
|
||||
</NavbarBase>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue