Files
panel/resources/scripts/components/admin/nodes/NodeAllocationContainer.tsx
2021-07-20 14:38:11 -06:00

15 lines
432 B
TypeScript

import React from 'react';
import { useRouteMatch } from 'react-router-dom';
import AdminBox from '@/components/admin/AdminBox';
import CreateAllocationForm from '@/components/admin/nodes/CreateAllocationForm';
export default () => {
const match = useRouteMatch<{ id: string }>();
return (
<AdminBox title={'Allocations'}>
<CreateAllocationForm nodeId={match.params.id}/>
</AdminBox>
);
};