Extracted short URLs table into reusable component to use both on list section and overview section

This commit is contained in:
Alejandro Celaya
2020-12-07 11:17:19 +01:00
parent dba0ac6442
commit 032e9c53f3
12 changed files with 276 additions and 206 deletions

View File

@@ -44,10 +44,10 @@ const provideServices = (bottle: Bottle, connect: ConnectDecorator, withRouter:
bottle.serviceFactory('ServerError', ServerError, 'DeleteServerButton');
bottle.decorator('ServerError', connect([ 'servers', 'selectedServer' ]));
bottle.serviceFactory('Overview', () => Overview);
bottle.serviceFactory('Overview', Overview, 'ShortUrlsTable');
bottle.decorator('Overview', connect(
[ 'shortUrlsList', 'tagsList' ],
[ 'listShortUrls', 'listTags' ],
[ 'shortUrlsList', 'tagsList', 'selectedServer', 'mercureInfo' ],
[ 'listShortUrls', 'listTags', 'createNewVisits', 'loadMercureInfo' ],
));
// Services