Skip to content

Commit cb690c0

Browse files
authored
Merge pull request #96 from adaptui/refactoring-components
2 parents e768574 + 420620f commit cb690c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/checkbox/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ const RNCheckbox: React.FC<Partial<CheckboxProps>> = forwardRef<
311311
{label}
312312
</Text>
313313
)}
314-
{description && (
314+
{label && description && (
315315
<Text
316316
style={[
317317
tailwind.style(

src/components/radio/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const RNRadio: React.FC<Partial<RadioProps>> = forwardRef<
225225
{label}
226226
</Text>
227227
)}
228-
{description && (
228+
{label && description && (
229229
<Text
230230
style={[
231231
tailwind.style(

0 commit comments

Comments
 (0)