Merge pull request #3219 from frewsxcv/header

Migrate `src/components/LoginSignUp/Header` to TypeScript.
This commit is contained in:
Seth Peterson
2025-11-14 09:17:35 -06:00
committed by GitHub

View File

@@ -1,21 +1,17 @@
// @flow
import { Body1 } from "components/SharedComponents";
import { View } from "components/styledComponents";
import INaturalistLogo from "images/svg/inaturalist-white.svg";
import type { Node } from "react";
import React from "react";
type Props = {
headerText?: string,
hideHeader?: boolean
interface Props {
headerText?: string;
hideHeader?: boolean;
}
const Header = ( { headerText, hideHeader }: Props ): Node => {
const Header = ( { headerText, hideHeader }: Props ) => {
if ( hideHeader ) { return null; }
const renderLogo = ( ) => (
// $FlowIgnore[not-a-component]
<INaturalistLogo width="234" height="43" />
);
return (