Fix tsc
This commit is contained in:
parent
0cd28d7394
commit
29babfd38a
7 changed files with 3 additions and 22 deletions
|
|
@ -5,7 +5,6 @@ import {
|
|||
HelpCircleIcon,
|
||||
SendIcon,
|
||||
ChevronRightIcon,
|
||||
ChevronLeftIcon,
|
||||
Settings,
|
||||
ConstructionIcon,
|
||||
PlusIcon,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
import { useSession } from "../contexts/SessionContext";
|
||||
|
||||
export const ChantiersPage = () => {
|
||||
const { session } = useSession();
|
||||
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import { useSession } from "../contexts/SessionContext";
|
||||
import { Button } from "../ui-library/button";
|
||||
import { PlusIcon } from "../ui-library/icons";
|
||||
import {
|
||||
AllCommunityModule,
|
||||
ModuleRegistry,
|
||||
themeAlpine,
|
||||
themeQuartz,
|
||||
} from "ag-grid-community";
|
||||
import { AgGridReact } from "ag-grid-react";
|
||||
|
|
@ -21,7 +19,6 @@ type Devis = {
|
|||
};
|
||||
|
||||
export const DevisPage = () => {
|
||||
const { session } = useSession();
|
||||
const [devisData, setDevisData] = useState<Devis[]>([
|
||||
{
|
||||
id: 1,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
import { useSession } from "../contexts/SessionContext";
|
||||
|
||||
export const FacturesPage = () => {
|
||||
const { session } = useSession();
|
||||
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import { useSession } from "../contexts/SessionContext";
|
||||
|
||||
export const PlanningPage = () => {
|
||||
const { session } = useSession();
|
||||
// const { session } = useSession();
|
||||
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
import { Menu } from "react-aria-components";
|
||||
import { MenuTrigger } from "react-aria-components";
|
||||
import { MenuButton } from "../ui-library/menu";
|
||||
import { MenuItem } from "react-aria-components";
|
||||
import { SignOutButton } from "../components/SignOutButton";
|
||||
import { useSession } from "../contexts/SessionContext";
|
||||
import { MenuPopover } from "../ui-library/menu";
|
||||
import { ControlledOpenState } from "../components/NavigationBar";
|
||||
export const TabloPage = () => {
|
||||
const { session } = useSession();
|
||||
return (
|
||||
|
|
@ -35,7 +29,6 @@ export const TabloPage = () => {
|
|||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<ControlledOpenState />
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -44,11 +44,13 @@ export function MenuButton({
|
|||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/display-name
|
||||
export const MenuPopover = React.forwardRef(
|
||||
({ className, ...props }: PopoverProps, ref: React.Ref<HTMLDivElement>) => {
|
||||
return (
|
||||
<Popover
|
||||
{...props}
|
||||
// @ts-expect-error "ref is not defined"
|
||||
ref={ref}
|
||||
className={composeTailwindRenderProps(
|
||||
className,
|
||||
|
|
|
|||
Loading…
Reference in a new issue