Skip to content

Commit

Permalink
Add padding to error in radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kowczarz committed Jan 15, 2024
1 parent 389e04a commit e99fbed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/RadioButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {useState} from 'react';
import {View} from 'react-native';
import useThemeStyles from '@hooks/useThemeStyles';
import RadioButtonWithLabel from './RadioButtonWithLabel';

Expand All @@ -20,7 +21,7 @@ function RadioButtons({items, onPress}: RadioButtonsProps) {
const [checkedValue, setCheckedValue] = useState('');

return (
<>
<View style={styles.mb3}>
{items.map((item) => (
<RadioButtonWithLabel
key={item.value}
Expand All @@ -33,7 +34,7 @@ function RadioButtons({items, onPress}: RadioButtonsProps) {
label={item.label}
/>
))}
</>
</View>
);
}

Expand Down

0 comments on commit e99fbed

Please sign in to comment.