on 729283f help sign in
bridge/src/views/CancelTransfer.js
21 lines 584 B history raw
1import React from 'react';
3import View from 'components/View';
5import AdminCancelTransfer from './Admin/AdminCancelTransfer';
6import { LocalRouterProvider } from 'lib/LocalRouter';
7import { useHistory } from 'store/history';
9export default function CancelTransfer() {
10 const history = useHistory();
12 return (
13 // TODO: this is a hack so AdminCancelTransfer works unmodified
14 // TODO: consolidate history & 'local' router providers
15 <LocalRouterProvider value={history}>
16 <View inset>
17 <AdminCancelTransfer />
18 </View>
19 </LocalRouterProvider>
20 );