mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Merge pull request #3219 from frewsxcv/header
Migrate `src/components/LoginSignUp/Header` to TypeScript.
This commit is contained in:
@@ -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 (
|
||||
Reference in New Issue
Block a user