Skip to content

Commit

Permalink
annotatedHeader: Convert to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 5, 2023
1 parent 2b4644c commit 69bbba0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import React from "react";
import { FaInfoCircle } from "react-icons/fa";
import {StyledTooltip, HeaderIconContainer, HeaderContainer} from "./styles";

export const AnnotatedHeader = ({title, tooltip, mobile}) => {
type Props = {
title: string
tooltip: JSX.Element
mobile: boolean
}

export const AnnotatedHeader = ({title, tooltip, mobile}: Props) => {
return (
<HeaderContainer>
<span>{title}</span>
Expand Down

0 comments on commit 69bbba0

Please sign in to comment.