Skip to content

Commit

Permalink
refactor: rename types
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Oct 13, 2023
1 parent c918d98 commit 166918b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { breakpoints } from 'shared/styles/mediaQueries';
import styled from 'styled-components';

type $CompanyInfoWrapperProps = {
type $ApplicationDetailWrapperProps = {
$fontSize?: string;
};
type $CompanyInfoRowProps = {
type $ApplicationDetailRowProps = {
$forceColumn?: boolean;
$alignItems?: string;
};
type $CompanyInfoValueProps = {
type $ApplicationDetailValueProps = {
$column?: boolean;
};

export const $ApplicationDetailWrapper = styled.dl<$CompanyInfoWrapperProps>`
export const $ApplicationDetailWrapper = styled.dl<$ApplicationDetailWrapperProps>`
font-size: ${(props) =>
props.$fontSize ? String(props.$fontSize) : props.theme.fontSize.body.m};
`;
Expand All @@ -23,7 +23,7 @@ export const $ApplicationDetailLabel = styled.dt`
margin-right: ${(props) => props.theme.spacing.m};
`;

export const $ApplicationDetailValue = styled.dd<$CompanyInfoValueProps>`
export const $ApplicationDetailValue = styled.dd<$ApplicationDetailValueProps>`
margin-right: ${(props) => props.theme.spacing.xs};
margin-inline-start: 0;
display: ${(props) => (props.$column ? 'flex-start' : 'inline-flex')};
Expand All @@ -32,7 +32,7 @@ export const $ApplicationDetailValue = styled.dd<$CompanyInfoValueProps>`
}
`;

export const $ApplicationDetailRow = styled.div<$CompanyInfoRowProps>`
export const $ApplicationDetailRow = styled.div<$ApplicationDetailRowProps>`
display: flex;
font-size: 1.1em;
line-height: ${(props) => props.theme.lineHeight.l};
Expand Down

0 comments on commit 166918b

Please sign in to comment.