mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-05 03:03:00 +03:00
Created modal to edit the loing URL behind a short URL
This commit is contained in:
parent
ab2f311bb7
commit
7949e224e0
6 changed files with 129 additions and 3 deletions
src/short-urls/helpers
|
@ -26,9 +26,7 @@ const dateOrUndefined = (shortUrl, dateName) => {
|
|||
return date && moment(date);
|
||||
};
|
||||
|
||||
const EditMetaModal = (
|
||||
{ isOpen, toggle, shortUrl, shortUrlMeta, editShortUrlMeta, resetShortUrlMeta }
|
||||
) => {
|
||||
const EditMetaModal = ({ isOpen, toggle, shortUrl, shortUrlMeta, editShortUrlMeta, resetShortUrlMeta }) => {
|
||||
const { saving, error } = shortUrlMeta;
|
||||
const url = shortUrl && (shortUrl.shortUrl || '');
|
||||
const [ validSince, setValidSince ] = useState(dateOrUndefined(shortUrl, 'validSince'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue