Support plural paths for tx details

This commit is contained in:
Justin Starry
2020-05-03 12:07:51 +08:00
committed by Michael Vines
parent f2a034f938
commit cfa0c20910

View File

@ -32,7 +32,9 @@ function App() {
<Switch> <Switch>
<Route <Route
exact exact
path={TX_ALIASES.map(tx => `/${tx}/:signature`)} path={TX_ALIASES.flatMap(tx => [tx, tx + "s"]).map(
tx => `/${tx}/:signature`
)}
render={({ match }) => ( render={({ match }) => (
<TransactionDetails signature={match.params.signature} /> <TransactionDetails signature={match.params.signature} />
)} )}