Make requested changes

This commit is contained in:
Arun Kumar 2021-03-18 22:49:37 +05:30
parent 489f45b910
commit db4ed1ecb1
8 changed files with 94 additions and 25 deletions

View file

@ -7,6 +7,7 @@ type Props = {
value: string;
onChange: (value: string) => void;
label: string;
customName: boolean;
};
export class ProjectName extends Component<Props> {
@ -43,7 +44,11 @@ export class ProjectName extends Component<Props> {
};
public render() {
return (
return this.props.customName ? (
<span className="TextInput" aria-label={this.props.label}>
{this.props.value}
</span>
) : (
<span
suppressContentEditableWarning
ref={this.makeEditable}