Skip to content

Commit

Permalink
Do not show sub type unless dentist
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarenko committed Dec 22, 2021
1 parent 03db8f2 commit d806421
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/DoctorCard/Shared/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ export const DoubleChip = function DoubleChip({ type, ageGroup }) {
<Icons.Icon name={typeIcon} className="icon" />
<span className="text">{t(`${drType}`)}</span>
</Styled.PageInfo.First>
<Styled.PageInfo.Second direction="row" component="span" spacing={1}>
<span className="text">{t(`${drAgeGroup}`)}</span>
<Icons.Icon name={ageGroupIcon} className="icon" />
</Styled.PageInfo.Second>
{type === 'den' && (
<Styled.PageInfo.Second direction="row" component="span" spacing={1}>
<span className="text">{t(`${drAgeGroup}`)}</span>
<Icons.Icon name={ageGroupIcon} className="icon" />
</Styled.PageInfo.Second>
)}
</Styled.PageInfo.DCWrapper>
);
};

0 comments on commit d806421

Please sign in to comment.