Skip to content

Commit

Permalink
fix(ui): make gitops git access token text field hidden
Browse files Browse the repository at this point in the history
Signed-off-by: Nabil Houidi <35373676+NabilHouidi@users.noreply.github.com>
  • Loading branch information
NabilHouidi committed Mar 22, 2024
1 parent d176b92 commit 9e92158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.fieldContainer {
gap: 0.15rem;
width: 100% !important;
.inputContainer {
:global {
width: 100%;
.bp3-form-group {
margin-bottom: 0 !important;
}
Expand Down
9 changes: 3 additions & 6 deletions chaoscenter/web/src/views/Gitops/Gitops.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import type {
import { useDocumentTitle, useRouteWithBaseUrl } from '@hooks';
import { useStrings } from '@strings';
import Loader from '@components/Loader';
import PassowrdInput from '@components/PasswordInput';
import css from './Gitops.module.scss';

interface GitopsData {
Expand Down Expand Up @@ -254,13 +255,9 @@ export default function GitopsView({
]}
/>
{formikProps.values.authType === AuthType.TOKEN && (
<FormInput.Text
<PassowrdInput
name="token"
label={
<Text font={{ variation: FontVariation.FORM_LABEL }} margin={{ top: 'medium' }}>
{getString('accessToken')}
</Text>
}
label={getString('accessToken')}
placeholder={getString('accessTokenPlaceholder')}
/>
)}
Expand Down

0 comments on commit 9e92158

Please sign in to comment.