Skip to content

Commit 21337f7

Browse files
committed
client(TrueFalseInput.tsx): add trueLabel and falseLabel query params
1 parent 1241eb2 commit 21337f7

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

client/build/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.ad97fd30.js renamed to client/build/static/js/main.08b3d51a.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.ad97fd30.js.map renamed to client/build/static/js/main.08b3d51a.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/components/input/TrueFalseInput.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ interface TrueFalseInputProps {
55
value: boolean;
66
setValue: (value: boolean) => void;
77
className?: string;
8+
trueLabel: string;
9+
falseLabel: string;
810
}
911

1012
const TrueFalseInput: FC<TrueFalseInputProps> = (props) => {
@@ -28,7 +30,7 @@ const TrueFalseInput: FC<TrueFalseInputProps> = (props) => {
2830
: "hover:border-gh-button-border-active"
2931
}`}
3032
>
31-
True
33+
{props.trueLabel}
3234
</div>
3335

3436
<div
@@ -40,7 +42,7 @@ const TrueFalseInput: FC<TrueFalseInputProps> = (props) => {
4042
: "hover:border-gh-button-border-active"
4143
}`}
4244
>
43-
False
45+
{props.falseLabel}
4446
</div>
4547
</div>
4648
</div>

client/src/pages/Options.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,21 @@ const Options: FC<OptionsProps> = (props) => {
156156

157157
<div className="flex items-start gap-4">
158158
<TrueFalseInput
159-
label="Show Border"
159+
label="Border"
160160
value={card.showBorder}
161161
setValue={(v) =>
162162
setCard({ ...card, showBorder: v, lines: card.lines })
163163
}
164+
trueLabel="Show"
165+
falseLabel="Hide"
164166
/>
165167

166168
<TrueFalseInput
167-
label="Hide Background"
169+
label="Background"
168170
value={card.hideBg}
169171
setValue={(v) => setCard({ ...card, hideBg: v, lines: card.lines })}
172+
trueLabel="Show"
173+
falseLabel="Hide"
170174
/>
171175
</div>
172176
</div>

0 commit comments

Comments
 (0)