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
1 changed files with 3 additions and 1 deletions

View File

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