Feature/4 pilots add #20
@@ -4,7 +4,6 @@ import {
|
||||
Button,
|
||||
Card,
|
||||
PlusIcon,
|
||||
DatePicker,
|
||||
Typography
|
||||
} from '@noahspan/noahspan-components';
|
||||
|
||||
@@ -13,27 +12,24 @@ const Pilots: React.FC<unknown> = () => {
|
||||
const onOpenCloseDrawer = () => {
|
||||
setIsDrawerOpen(!isDrawerOpen);
|
||||
};
|
||||
const [date, setDate] = useState();
|
||||
|
||||
return (
|
||||
<Card className="mt-6">
|
||||
<div className="px-6">
|
||||
<Typography variant="h3">Pilots</Typography>
|
||||
<Button
|
||||
className="flex items-center gap-3"
|
||||
variant="filled"
|
||||
onClick={onOpenCloseDrawer}
|
||||
data-testid="add-pilot-button"
|
||||
>
|
||||
<PlusIcon size="lg" />
|
||||
Add Pilot
|
||||
</Button>
|
||||
<Card className="mt-6 px-6">
|
||||
<Typography variant="h3">Pilots</Typography>
|
||||
<Button
|
||||
className="flex items-center gap-3"
|
||||
variant="filled"
|
||||
onClick={onOpenCloseDrawer}
|
||||
data-testid="add-pilot-button"
|
||||
>
|
||||
<PlusIcon size="lg" />
|
||||
Add Pilot
|
||||
</Button>
|
||||
|
||||
<PilotForm
|
||||
isDrawerOpen={isDrawerOpen}
|
||||
onOpenCloseDrawer={onOpenCloseDrawer}
|
||||
/>
|
||||
</div>
|
||||
<PilotForm
|
||||
isDrawerOpen={isDrawerOpen}
|
||||
onOpenCloseDrawer={onOpenCloseDrawer}
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
body {
|
||||
@apply bg-black;
|
||||
}
|
||||
h1 {
|
||||
@apply text-2xl font-bold leading-7 text-gray-900;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user