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

Commit 4e30b81

Browse files
committed
rename center variable
1 parent bc7389b commit 4e30b81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Box/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ export function Box<T extends keyof JSX.IntrinsicElements>(
9292
const direction = props.Direction ?? Enum.FillDirection.Vertical;
9393
props.Direction = undefined;
9494

95-
const shouldCenter = props.Center;
95+
const center = props.Center;
9696
props.Center = undefined;
9797

9898
const horizontalAlignment =
9999
props.HorizontalAlignment ??
100-
(shouldCenter ? Enum.HorizontalAlignment.Center : undefined);
100+
(center ? Enum.HorizontalAlignment.Center : undefined);
101101
props.HorizontalAlignment = undefined;
102102

103103
const verticalAlignment =
104104
props.VerticalAlignment ??
105-
(shouldCenter ? Enum.VerticalAlignment.Center : undefined);
105+
(center ? Enum.VerticalAlignment.Center : undefined);
106106
props.VerticalAlignment = undefined;
107107

108108
const borderColor3 = props.BorderColor3;

0 commit comments

Comments
 (0)