Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit d0305d6

Browse files
committed
fixes
1 parent 34c8d4d commit d0305d6

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grand-hawk/ui-components",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"keywords": [
55
"roblox-ts",
66
"react",

src/components/Checkbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface CheckboxProps extends ButtonProps {
1919
}
2020

2121
export function Checkbox(componentProps: PropsWithChildren<CheckboxProps>) {
22-
const props = componentProps;
22+
const props = { ...componentProps };
2323

2424
const value = props.Value;
2525
props.Value = undefined;

src/components/Sheet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface SheetProps extends BoxProps {
1313
export function Sheet(componentProps: PropsWithChildren<SheetProps>) {
1414
const theme = useTheme();
1515

16-
const props = componentProps;
16+
const props = { ...componentProps };
1717

1818
const background = props.Background
1919
? theme.backgroundPrimary

src/components/Typography/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ import { useTheme } from 'components/ThemeProvider';
66
import type { PropsWithChildren } from '@rbxts/react';
77
import type { BoxProps } from 'components/Box';
88

9-
export interface TypographyProps extends BoxProps<'textlabel'> {}
9+
export interface TypographyProps extends BoxProps<'textlabel'> {
10+
Bold?: boolean;
11+
}
1012

11-
export function Typography(props: PropsWithChildren<TypographyProps>) {
13+
export function Typography(componentProps: PropsWithChildren<TypographyProps>) {
1214
const theme = useTheme();
1315

16+
const props = { ...componentProps };
17+
18+
const bold = componentProps.Bold ?? false;
19+
props.Bold = undefined;
20+
1421
return (
1522
<Box
1623
Component="textlabel"
24+
Font={bold ? theme.fontBold : theme.fontRegular}
1725
TextColor3={theme.textPrimary}
1826
TextSize={12}
1927
TextXAlignment={Enum.TextXAlignment.Left}

0 commit comments

Comments
 (0)