diff --git a/src/plugins/navigation/components/SaveBookmarkDialog.js b/src/plugins/navigation/components/SaveBookmarkDialog.js index e73036840..33bc52f94 100644 --- a/src/plugins/navigation/components/SaveBookmarkDialog.js +++ b/src/plugins/navigation/components/SaveBookmarkDialog.js @@ -13,8 +13,10 @@ import type {Bookmark} from '../flow-types'; type Props = {| uri: ?string, + edit: boolean, shouldShow: boolean, onHide: ?() => void, + onRemove: string => void, onSubmit: Bookmark => void, |}; @@ -47,7 +49,7 @@ const NameInput = styled(Input)({ }); export default (props: Props) => { - const {shouldShow, onHide, onSubmit, uri} = props; + const {edit, shouldShow, onHide, onRemove, onSubmit, uri} = props; const [commonName, setCommonName] = useState(''); if (uri == null || !shouldShow) { return null; @@ -57,7 +59,9 @@ export default (props: Props) => { {hide => { return ( - Save to bookmarks... + + {edit ? 'Edit bookmark...' : 'Save to bookmarks...'} + { padded> Cancel + {edit ? ( + + ) : null} +