2021-07-20 19:20:41 +00:00
|
|
|
import React from 'react';
|
2021-07-14 22:43:59 +00:00
|
|
|
import { useRouteMatch } from 'react-router-dom';
|
2021-07-20 19:20:41 +00:00
|
|
|
import AdminBox from '@/components/admin/AdminBox';
|
|
|
|
import CreateAllocationForm from '@/components/admin/nodes/CreateAllocationForm';
|
2021-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const match = useRouteMatch<{ id: string }>();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<AdminBox title={'Allocations'}>
|
2021-07-20 19:20:41 +00:00
|
|
|
<CreateAllocationForm nodeId={match.params.id}/>
|
2021-07-14 22:43:59 +00:00
|
|
|
</AdminBox>
|
|
|
|
);
|
|
|
|
};
|