diff --git a/packages/app-js/src/LocalStorage.tsx b/packages/app-js/src/LocalStorage.tsx index 5f7846df9e..2b3323f411 100644 --- a/packages/app-js/src/LocalStorage.tsx +++ b/packages/app-js/src/LocalStorage.tsx @@ -13,7 +13,8 @@ import translate from './translate'; type Props = BareProps & I18nProps & { isCustomExample: boolean, saveSnippet: (snippetName: string) => void, - removeSnippet: () => void + removeSnippet: () => void, + snippetName?: string }; type State = { @@ -75,6 +76,7 @@ class LocalStorage extends React.PureComponent { maxLength={50} min={1} placeholder={t('Name your example')} + value={snippetName} />