Skip to content

Commit

Permalink
TileHeader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrzywiec committed Nov 30, 2024
1 parent c03252b commit 44e07c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/mankkoo-ui/components/elements/SubHeadline.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode } from "react"
import classes from "./SubHeadline.module.css"

export default function SubHeadline({text}: {text: string}) {
export default function SubHeadline({text}: {text: string | ReactNode}) {
return (
<p className={classes.tileText}>
{text}
Expand Down
2 changes: 1 addition & 1 deletion services/mankkoo-ui/components/elements/TileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Headline from "@/components/elements/Headline"
import SubHeadline from "@/components/elements/SubHeadline"
import { ReactNode } from 'react';

export default function TileHeader({headline, subHeadline, headlineElement}: {headline?: string, subHeadline?: string | ReactNode, headlineElement?: ReactNode}) {
export default function TileHeader({headline, subHeadline, headlineElement}: {headline: string, subHeadline: string | ReactNode, headlineElement?: ReactNode}) {
return (
<>
<Headline text={headline} fontSize="2">{headlineElement}</Headline>
Expand Down

0 comments on commit 44e07c6

Please sign in to comment.