Skip to content

Commit

Permalink
Format check
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Mar 26, 2024
1 parent b00ce1e commit 76fba2a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 26 deletions.
8 changes: 4 additions & 4 deletions src/components/AddVariable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export const AddVariable = ({
? 'Update environment variable'
: 'Add environment variable'
: updateVar || varName
? 'Update project variable'
: 'Add project variable'}
? 'Update project variable'
: 'Add project variable'}
</ButtonBootstrap>
</Popconfirm>
);
Expand All @@ -248,8 +248,8 @@ export const AddVariable = ({
? 'Update environment variable'
: 'Add environment variable'
: updateVar || varName
? 'Update project variable'
: 'Add project variable'}
? 'Update project variable'
: 'Add project variable'}
</ButtonBootstrap>
);
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/AddVariable/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const withInputHandlers = withHandlers({
setInputName(event.target.value),
setClear:
({ setInputValue, setInputName, setInputScope }) =>
() => [setInputValue(''), setInputName(''), setInputScope('')],
() =>
[setInputValue(''), setInputName(''), setInputScope('')],
});

const withModalState = withState('open', 'setOpen', false);
Expand Down
3 changes: 2 additions & 1 deletion src/components/DeleteVariable/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const withInputHandlers = withHandlers({
setInputValue(event.target.value),
setClear:
({ setInputValue }) =>
() => [setInputValue('')],
() =>
[setInputValue('')],
});

const withModalState = withState('open', 'setOpen', false);
Expand Down
8 changes: 2 additions & 6 deletions src/components/Problem/ContentDisplay/StyledContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export const StyledDefaultContent = styled.div`
margin: 0;
background: #2d2d2d;
color: white;
font:
0.8rem Inconsolata,
monospace;
font: 0.8rem Inconsolata, monospace;
line-height: 2;
transition: all 0.6s ease-in-out;
}
Expand All @@ -79,9 +77,7 @@ export const StyledDrutinyContent = styled.div`
background: #2d2d2d;
padding: 20px;
color: white;
font:
0.8rem Inconsolata,
monospace;
font: 0.8rem Inconsolata, monospace;
line-height: 2;
transition: all 0.6s ease-in-out;
padding: 20px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Problems/sortedItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ const useSortableProblemsData = initialItems => {
sortConfig.key === 'created'
? new moment(a[sortConfig.key]).format('YYYYMMDD')
: a[sortConfig.key]
? a[sortConfig.key].toString().toLowerCase().trim()
: null;
? a[sortConfig.key].toString().toLowerCase().trim()
: null;
let bParsed =
sortConfig.key === 'created'
? new moment(b[sortConfig.key]).format('YYYYMMDD')
: b[sortConfig.key]
? b[sortConfig.key].toString().toLowerCase().trim()
: null;
? b[sortConfig.key].toString().toLowerCase().trim()
: null;

if (aParsed < bParsed) {
return sortConfig.direction === 'ascending' ? -1 : 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ export const StyledProblemsByIdentifier = styled.div`
margin: 0;
background: #2d2d2d;
color: white;
font:
0.8rem Inconsolata,
monospace;
font: 0.8rem Inconsolata, monospace;
line-height: 2;
transition: all 0.6s ease-in-out;
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ProblemsByProject/StyledProblemsByProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export const StyledProblemsByProject = styled.div`
padding: 20px;
margin: 0;
color: ${color.white};
font:
0.8rem Inconsolata,
monospace;
font: 0.8rem Inconsolata, monospace;
line-height: 2;
transition: all 0.6s ease-in-out;
padding: 20px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ export const FieldWrapper = styled.div`
right: 0;
text-transform: uppercase;
top: 20px;
transition:
top 0.5s,
opacity 0.75s ease-in;
transition: top 0.5s, opacity 0.75s ease-in;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export const PageProject = ({ router }) => {
}
// Sort alphabetically by environmentType and then deployType
const environments = R.sortWith(
[R.descend(R.prop('environmentType')), R.ascend(R.prop('deployType')), R.ascend(env => env.deployType === 'branch' ? env.name : null)],
[
R.descend(R.prop('environmentType')),
R.ascend(R.prop('deployType')),
R.ascend(env => (env.deployType === 'branch' ? env.name : null)),
],
project.environments
);
const environmentCount = environments.length;
Expand Down

0 comments on commit 76fba2a

Please sign in to comment.