Support plural paths for tx details
This commit is contained in:
parent
f2a034f938
commit
cfa0c20910
|
@ -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} />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue