Skip to content

Commit

Permalink
[#41] Unified header look
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-kopecky committed Oct 14, 2021
1 parent c04c297 commit 7f3b148
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/DetailPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const DetailPageHeader: React.FC<DetailPageHeaderProps> = (props) => {
);
};

const DetailHeaderWrapper: React.FC = (props) => {
export const DetailHeaderWrapper: React.FC = (props) => {
return (
<Box bgcolor="primary.main" pb={1}>
<Container>
Expand Down
18 changes: 6 additions & 12 deletions src/components/DisambiguationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SearchItem, SearchTerm } from "./SearchResult";
import TermResult from "./TermResult";
import Loader from "./Loader";
import usePrefetchTerms from "../hooks/usePrefetchTerms";
import { DetailHeaderWrapper } from "./DetailPageHeader";

const DisambiguationPage: React.FC = () => {
const routeQuery = useRouteQuery();
Expand Down Expand Up @@ -35,18 +36,11 @@ const DisambiguationPage: React.FC = () => {

return (
<Box flex={1} display="flex" flexDirection="column">
<Box bgcolor="primary.main" pb={1}>
<Container>
<Box px={5}>
<Typography variant="h5" color="textSecondary">
slovo
</Typography>
<Typography variant="h1" color="textSecondary">
{wordLabel ?? ""}
</Typography>
</Box>
</Container>
</Box>
<DetailHeaderWrapper>
<Typography variant="h1" color="textSecondary">
{wordLabel ?? ""}
</Typography>
</DetailHeaderWrapper>
<WordContent terms={terms} />
</Box>
);
Expand Down

0 comments on commit 7f3b148

Please sign in to comment.