forked from spinnaker/deck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cf): fix the alignment issue for artifacts in deploy SG (spinnake…
- Loading branch information
1 parent
3dac1d9
commit 4f826d1
Showing
5 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
app/scripts/modules/cloudfoundry/src/presentation/forms/inputs/FormikConfigField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as React from 'react'; | ||
|
||
import { HelpField } from '@spinnaker/core'; | ||
|
||
export interface IFormikConfigFieldProps { | ||
label: string; | ||
helpKey?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export class FormikConfigField extends React.Component<IFormikConfigFieldProps> { | ||
constructor(props: IFormikConfigFieldProps) { | ||
super(props); | ||
} | ||
|
||
public render(): JSX.Element { | ||
const { label, helpKey, children } = this.props; | ||
return ( | ||
<div className={'StandardFieldLayout flex-container-h baseline margin-between-lg'}> | ||
<label className={`sm-label-right`}> | ||
<span className="label-text">{label} </span> | ||
{helpKey && <HelpField id={helpKey} />} | ||
</label> | ||
<div className={`flex-grow`}>{children}</div> | ||
</div> | ||
); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
app/scripts/modules/cloudfoundry/src/presentation/forms/inputs/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './CloudFoundryRadioButtonInput'; | ||
export * from './FormikConfigField'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters