Skip to content

Commit

Permalink
Removed unnessesary linter fixes [RCORE-673]
Browse files Browse the repository at this point in the history
  • Loading branch information
ewagoner committed Apr 10, 2023
1 parent e234b50 commit ee72500
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function PinnedProtocol(props: {
longpress: UseLongPressResult,
protocolId: string
): void => {
if (longpress.isLongPressed !== true) {
if (!longpress.isLongPressed) {
history.push(`/protocols/${protocolId}`)
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@ export function PinnedProtocol(props: {
lineHeight={TYPOGRAPHY.lineHeight28}
>
{lastRun !== undefined
? `${String(t('last_run'))} ${formatDistance(
? `${t('last_run')} ${formatDistance(
new Date(lastRun),
new Date(),
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/OnDeviceDisplay/ProtocolDashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export function ProtocolCard(props: {
<StyledText fontWeight={TYPOGRAPHY.fontWeightRegular}>
{format(new Date(protocol.createdAt), 'Pp')}
</StyledText>
{longpress.isLongPressed === true && (
{longpress.isLongPressed && (
<LongPressModal longpress={longpress} protocol={protocol} />
)}
</Flex>
Expand Down
4 changes: 2 additions & 2 deletions app/src/pages/OnDeviceDisplay/ProtocolDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const ProtocolHeader = (props: {
borderRadius={BORDERS.size_six}
boxShadow="none"
onClick={handleRunProtocol}
padding={`${String(SPACING.spacing4)} ${String(SPACING.spacing5)}`}
padding={`${SPACING.spacing4} ${SPACING.spacing5}`}
>
<StyledText
fontSize="2.333125rem"
Expand Down Expand Up @@ -194,7 +194,7 @@ const Summary = (props: {
lineHeight={TYPOGRAPHY.lineHeight28}
marginTop={SPACING.spacing5}
maxWidth="22rem"
padding={`${String(SPACING.spacing3)} 0.75rem`}
padding={`${SPACING.spacing3} 0.75rem`}
>
<StyledText>{`${t('protocol_info:date_added')}: ${
date != null
Expand Down

0 comments on commit ee72500

Please sign in to comment.