Fix removal of langci from repo (#2204)

- Move all strings of the form {`...`} to use just ""

- Fix RoleBindingDetails not rendering the name of the role binding

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-02-23 08:13:46 -05:00
1 parent 83d7e4550c
commit 5258aab0d2
35 files changed
+78 -78

No files matched your search

@@ -133,7 +133,7 @@ export class AddSecretDialog extends React.Component<Props> {
<SubTitle compact className="fields-title" title={upperFirst(field.toString())}>
<Icon
small
tooltip={`Add field`}
tooltip="Add field"
material="add_circle_outline"
onClick={() => this.addField(field)}
/>
@@ -146,7 +146,7 @@ export class AddSecretDialog extends React.Component<Props> {
<div key={index} className="secret-field flex gaps auto align-center">
<Input
className="key"
placeholder={`Name`}
placeholder="Name"
title={key}
tabIndex={required ? -1 : 0}
readOnly={required}
@@ -156,7 +156,7 @@ export class AddSecretDialog extends React.Component<Props> {
multiLine maxRows={5}
required={required}
className="value"
placeholder={`Value`}
placeholder="Value"
value={value} onChange={v => item.value = v}
/>
<Icon
@@ -194,7 +194,7 @@ export class AddSecretDialog extends React.Component<Props> {
<SubTitle title="Secret name" />
<Input
autoFocus required
placeholder={`Name`}
placeholder="Name"
validators={systemName}
value={name} onChange={v => this.name = v}
/>
@@ -69,7 +69,7 @@ export class SecretDetails extends React.Component<Props> {
</DrawerItem>
{!isEmpty(this.data) && (
<>
<DrawerTitle title={`Data`}/>
<DrawerTitle title="Data"/>
{
Object.entries(this.data).map(([name, value]) => {
const revealSecret = this.revealSecret[name];
@@ -107,7 +107,7 @@ export class SecretDetails extends React.Component<Props> {
}
<Button
primary
label={`Save`} waiting={this.isSaving}
label="Save" waiting={this.isSaving}
className="save-btn"
onClick={this.saveSecret}
/>