Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin committed Nov 30, 2023
1 parent 1e3b9c1 commit 0212be0
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
20 changes: 10 additions & 10 deletions src/client/src/components/buttons/colorButton/ColorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ const GeneralButton = styled.button<GeneralProps>`
margin: ${mobileMargin};
`
: withMargin
? css`
margin: ${withMargin};
`
: '0'};
? css`
margin: ${withMargin};
`
: '0'};
${({ fullWidth, mobileFullWidth }) =>
mobileFullWidth
? css`
width: 100%;
`
: fullWidth
? css`
width: 100%;
`
: ''};
? css`
width: 100%;
`
: ''};
}
`;

Expand All @@ -88,8 +88,8 @@ const BorderButton = styled(GeneralButton)<BorderProps>`
? borderColor
: colorButtonBorder
: selected
? colorButtonBorder
: colorButtonBorderTwo};
? colorButtonBorder
: colorButtonBorderTwo};
&:hover {
${({ borderColor, selected }: BorderProps) =>
Expand Down
8 changes: 4 additions & 4 deletions src/client/src/components/generic/Styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export const Card = styled.div<CardProps>`
padding: ${mobileCardPadding};
`
: cardPadding
? css`
padding: ${cardPadding};
`
: ''};
? css`
padding: ${cardPadding};
`
: ''};
}
`;

Expand Down
16 changes: 8 additions & 8 deletions src/client/src/components/input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ export const StyledInput = styled.input<InputProps>`
margin: ${mobileMargin};
`
: withMargin
? css`
margin: ${withMargin};
`
: ''};
? css`
margin: ${withMargin};
`
: ''};
${({ fullWidth, mobileFullWidth }) =>
mobileFullWidth
? css`
width: 100%;
`
: fullWidth
? css`
width: 100%;
`
: ''};
? css`
width: 100%;
`
: ''};
}
&:hover {
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/utils/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export const saveToPc = (
link.download = isCsv
? `${filename}.csv`
: isJson
? `${filename}.json`
: `${filename}.txt`;
? `${filename}.json`
: `${filename}.txt`;
link.href = url;
link.click();
};
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/views/dashboard/widgets/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export const getByTime = (array: ArrayType, time: number): any[] => {
date: total.date
? total.date
: isDay
? subHours(today, Number(key)).toISOString()
: subDays(today, Number(key)).toISOString(),
? subHours(today, Number(key)).toISOString()
: subDays(today, Number(key)).toISOString(),
};
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const OpenChannelCard = ({
pushType === 'none'
? 0
: pushType === 'half'
? size / 2
: Math.min(pushTokens, size * 0.9);
? size / 2
: Math.min(pushTokens, size * 0.9);

useEffect(() => {
if (type === 'none' && fee === 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/server/modules/api/chain/chain.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class ChainResolver {
const props = fee
? { fee_tokens_per_vbyte: fee }
: target
? { target_confirmations: target }
: {};
? { target_confirmations: target }
: {};

const hasTokens = tokens && !sendAllFlag ? { tokens } : {};
const sendAll = sendAllFlag ? { is_send_all: true } : {};
Expand Down

0 comments on commit 0212be0

Please sign in to comment.