-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for panel-specific header changes
Split AnnotatedHeader into AnnotatedTitle and ControlHeader. A future commit will introduce PanelHeader.
- Loading branch information
Showing
5 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { HeaderContainer } from "./styles"; | ||
import { AnnotatedTitle } from "./annotatedTitle"; | ||
|
||
type Props = { | ||
title: string | ||
tooltip: JSX.Element | ||
mobile: boolean | ||
} | ||
|
||
export const ControlHeader = ({title, tooltip, mobile }: Props) => { | ||
return ( | ||
<HeaderContainer> | ||
<AnnotatedTitle | ||
title={title} | ||
tooltip={tooltip} | ||
mobile={mobile} /> | ||
</HeaderContainer> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters