Skip to content

Commit

Permalink
fix(components): make prop transient
Browse files Browse the repository at this point in the history
  • Loading branch information
komret committed Apr 23, 2024
1 parent 64c8db4 commit afb0b1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/components/form/TopAddons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react';
import styled from 'styled-components';
import { spacingsPx } from '@trezor/theme';

const Container = styled.div<{ hasLeftAddon?: boolean }>`
const Container = styled.div<{ $hasLeftAddon?: boolean }>`
display: flex;
justify-content: ${({ hasLeftAddon }) => (hasLeftAddon ? 'space-between' : 'flex-end')};
justify-content: ${({ $hasLeftAddon }) => ($hasLeftAddon ? 'space-between' : 'flex-end')};
align-items: flex-end;
gap: ${spacingsPx.xs};
min-height: 30px;
Expand Down Expand Up @@ -53,7 +53,7 @@ export const TopAddons = ({
}

return (
<Container hasLeftAddon={!!addonLeft}>
<Container $hasLeftAddon={!!addonLeft}>
{addonLeft && <LeftAddon>{addonLeft}</LeftAddon>}
{isWithRightLabel && (
<RightAddonWrapper>
Expand Down

0 comments on commit afb0b1d

Please sign in to comment.