2021-09-13 01:40:10 +00:00
|
|
|
import AllocationTable from '@/components/admin/nodes/allocations/AllocationTable';
|
|
|
|
import { faNetworkWired } from '@fortawesome/free-solid-svg-icons';
|
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';
|
2021-09-13 01:40:10 +00:00
|
|
|
import CreateAllocationForm from '@/components/admin/nodes/allocations/CreateAllocationForm';
|
|
|
|
import tw from 'twin.macro';
|
2021-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const match = useRouteMatch<{ id: string }>();
|
|
|
|
|
|
|
|
return (
|
2021-09-13 01:40:10 +00:00
|
|
|
<>
|
|
|
|
<div css={tw`w-full grid grid-cols-12 gap-x-8`}>
|
|
|
|
<div css={tw`w-full flex col-span-8`}>
|
|
|
|
<AllocationTable nodeId={match.params.id}/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={tw`w-full flex col-span-4`}>
|
|
|
|
<AdminBox icon={faNetworkWired} title={'Allocations'} css={tw`h-auto w-full`}>
|
|
|
|
<CreateAllocationForm nodeId={match.params.id}/>
|
|
|
|
</AdminBox>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</>
|
2021-07-14 22:43:59 +00:00
|
|
|
);
|
|
|
|
};
|