Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlashAccount committed Jan 24, 2025
1 parent 8d9d79a commit 0ada0a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/gui/src/dashboard/components/AriaComponents/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,14 @@ const Heading = memo(
}),
)

Text.Heading = Heading

/** Text group component. It's used to visually group text elements together */
Text.Group = function TextGroup(props: React.PropsWithChildren) {
function TextGroup(props: React.PropsWithChildren) {
return (
<textProvider.TextProvider value={{ isInsideTextComponent: true }}>
{props.children}
</textProvider.TextProvider>
)
}

Text.Heading = Heading
Text.Group = TextGroup

0 comments on commit 0ada0a5

Please sign in to comment.