mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-09 13:10:19 +03:00
Updated stateFlagTimeout to get the setTimeout function injected as a dependency
This commit is contained in:
parent
00d386f19f
commit
8b8be2d7ca
8 changed files with 26 additions and 13 deletions
src/short-urls
|
@ -5,13 +5,12 @@ import React from 'react';
|
|||
import { Collapse } from 'reactstrap';
|
||||
import * as PropTypes from 'prop-types';
|
||||
import DateInput from '../utils/DateInput';
|
||||
import CreateShortUrlResult from './helpers/CreateShortUrlResult';
|
||||
import { createShortUrlResultType } from './reducers/shortUrlCreation';
|
||||
|
||||
const normalizeTag = pipe(trim, replace(/ /g, '-'));
|
||||
const formatDate = (date) => isNil(date) ? date : date.format();
|
||||
|
||||
const CreateShortUrl = (TagsSelector) => class CreateShortUrl extends React.Component {
|
||||
const CreateShortUrl = (TagsSelector, CreateShortUrlResult) => class CreateShortUrl extends React.Component {
|
||||
static propTypes = {
|
||||
createShortUrl: PropTypes.func,
|
||||
shortUrlCreationResult: createShortUrlResultType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue