Skip to content

Commit

Permalink
Fix: remove unnecessary useTheme usage
Browse files Browse the repository at this point in the history
  • Loading branch information
aabenoja committed Jan 17, 2019
1 parent e5cbb54 commit fb32616
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styled from 'styled-components';

import RadioButton from './RadioButton';
import Fieldset from '../../containers/fieldset/Fieldset';
import { useTheme } from '../../util/useTheme';

const RadioFieldset = styled(Fieldset)`
margin-bottom: 20px;
Expand Down Expand Up @@ -37,7 +36,6 @@ function RadioGroup({
validationState,
additionalHelpContent
}) {
const theme = useTheme();
const helpId = additionalHelpContent ? `${name}-help` : undefined;
const additionalHelp = additionalHelpContent && (
<AdditionalHelpContent
Expand All @@ -64,8 +62,7 @@ function RadioGroup({
validationState,
id: radioId,
optionText: config.optionText,
value: config.optionValue,
theme
value: config.optionValue
};
return <RadioButton key={radioId} {...radioProps} />;
})}
Expand Down

0 comments on commit fb32616

Please sign in to comment.