Skip to content

Commit

Permalink
fix: go back icon margins
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Dec 7, 2023
1 parent c10f781 commit 8f5c6b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GoBack/GoBack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export const GoBack = ({ className, link = false, up = false, children }: GoBack

return (
<Tag className={classNames(className, 'go-back')} color='primary' onClick={goBack}>
<Icon color={link ? 'primary' : 'white'} icon={up ? 'it-arrow-up' : 'it-arrow-left'} />
<Icon
className={children ? 'me-2' : ''}
color={link ? 'primary' : 'white'}
icon={up ? 'it-arrow-up' : 'it-arrow-left'}
/>
{children}
</Tag>
);
Expand Down

0 comments on commit 8f5c6b6

Please sign in to comment.