Replaced component by render on route rendering not found component with custom props

This commit is contained in:
Alejandro Celaya 2019-03-03 11:18:58 +01:00
parent c4bc2f24d6
commit 780e4a6e9e

View file

@ -91,9 +91,7 @@ const MenuLayout = (TagsList, ShortUrls, AsideMenu, CreateShortUrl, ShortUrlVisi
component={TagsList} component={TagsList}
/> />
<Route <Route
component={ render={() => <NotFound to={`/server/${serverId}/list-short-urls/1`} btnText="List short URLs" />}
() => <NotFound to={`/server/${serverId}/list-short-urls/1`} btnText="List short URLs" />
}
/> />
</Switch> </Switch>
</div> </div>