mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove customName from state
This commit is contained in:
parent
db4ed1ecb1
commit
f774452124
8 changed files with 9 additions and 79 deletions
|
@ -7,7 +7,7 @@ type Props = {
|
|||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
label: string;
|
||||
customName: boolean;
|
||||
isNameEditable: boolean;
|
||||
};
|
||||
|
||||
export class ProjectName extends Component<Props> {
|
||||
|
@ -44,7 +44,7 @@ export class ProjectName extends Component<Props> {
|
|||
};
|
||||
|
||||
public render() {
|
||||
return this.props.customName ? (
|
||||
return this.props.isNameEditable ? (
|
||||
<span className="TextInput" aria-label={this.props.label}>
|
||||
{this.props.value}
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue