Skip to content

Commit

Permalink
Fixing autosuggest component (#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis authored Dec 14, 2023
1 parent 76e5c39 commit 119ad36
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Props = {
tertiaryLabel: ?string,
};

const BpkSuggestion = (props: Props) => {
const BpkAutosuggestSuggestion = (props: Props) => {
const classNames = [getClassName('bpk-autosuggest__suggestion')];
const { className, icon, indent, subHeading, tertiaryLabel, value, ...rest } =
props;
Expand Down Expand Up @@ -87,7 +87,7 @@ const BpkSuggestion = (props: Props) => {
);
};

BpkSuggestion.propTypes = {
BpkAutosuggestSuggestion.propTypes = {
value: PropTypes.node.isRequired,
subHeading: PropTypes.node,
tertiaryLabel: PropTypes.string,
Expand All @@ -96,12 +96,12 @@ BpkSuggestion.propTypes = {
className: PropTypes.string,
};

BpkSuggestion.defaultProps = {
BpkAutosuggestSuggestion.defaultProps = {
subHeading: null,
tertiaryLabel: null,
icon: null,
indent: false,
className: null,
};

export default BpkSuggestion;
export default BpkAutosuggestSuggestion;

0 comments on commit 119ad36

Please sign in to comment.