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}
/>
<Route
component={
() => <NotFound to={`/server/${serverId}/list-short-urls/1`} btnText="List short URLs" />
}
render={() => <NotFound to={`/server/${serverId}/list-short-urls/1`} btnText="List short URLs" />}
/>
</Switch>
</div>