Skip to content

Commit

Permalink
Env-var fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed May 24, 2024
1 parent 61757ff commit 781370f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/AddVariable/StyledAddVariable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const NewVariableModal = styled.div`
font-family: 'source-code-pro', sans-serif;
font-weight: bold;
}
input, textarea {
input,
textarea {
margin-right: 10px;
width: 100%;
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/AddVariable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,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 @@ -247,8 +247,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
5 changes: 2 additions & 3 deletions src/components/AddVariable/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const withInputHandlers = withHandlers({
setInputName(event.target.value),
setClear:
({ setInputValue, setInputName, setInputScope }) =>
() =>
[setInputValue(''), setInputName(''), setInputScope('')],
() => [setInputValue(''), setInputName(''), setInputScope('')],
});

const withModalState = withState('open', 'setOpen', false);
Expand All @@ -33,7 +32,7 @@ const withModalHandlers = withHandlers({
() => {
setOpen(false);
setClear();
}
},
});

export default compose(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const StyledViewVariableValueModal = styled.div`
.col-3 {
width: fit-content;
line-break: anywhere;
white-space: break-spaces;
}
a.external-link {
color: ${color.brightBlue};
Expand Down

0 comments on commit 781370f

Please sign in to comment.