Build fixes

This commit is contained in:
Darren Clarke 2023-08-07 11:54:47 +02:00
parent be835c7759
commit fc3eb1f7d9
6 changed files with 6 additions and 8 deletions

View file

@ -3,7 +3,7 @@ import { IAppConfig } from "@digiresilience/metamigo-config";
import { postgraphile, HttpRequestHandler } from "postgraphile"; import { postgraphile, HttpRequestHandler } from "postgraphile";
import { getPostGraphileOptions } from "@digiresilience/metamigo-db"; import { getPostGraphileOptions } from "@digiresilience/metamigo-db";
export interface HapiPostgraphileOptions {} export interface HapiPostgraphileOptions { }
const PostgraphilePlugin: Hapi.Plugin<HapiPostgraphileOptions> = { const PostgraphilePlugin: Hapi.Plugin<HapiPostgraphileOptions> = {
name: "postgraphilePlugin", name: "postgraphilePlugin",
@ -29,7 +29,7 @@ const PostgraphilePlugin: Hapi.Plugin<HapiPostgraphileOptions> = {
}; };
} }
}, },
} } as any
); );
server.route({ server.route({

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { FC, useEffect, PropsWithChildren } from "react"; import { FC, useEffect } from "react";
import { CircularProgress, Typography, Grid } from "@mui/material"; import { CircularProgress, Typography, Grid } from "@mui/material";
import { signIn, signOut, getSession } from "next-auth/react"; import { signIn, signOut, getSession } from "next-auth/react";
import { useLogin, useTranslate } from "react-admin"; import { useLogin, useTranslate } from "react-admin";

View file

@ -2,7 +2,7 @@
import { Layout as RaLayout, LayoutProps, Sidebar } from "react-admin"; import { Layout as RaLayout, LayoutProps, Sidebar } from "react-admin";
import AppBar from "./AppBar"; import AppBar from "./AppBar";
import Menu from "./Menu"; import { Menu } from "./Menu";
import { theme } from "./themes"; import { theme } from "./themes";
const CustomSidebar = (props: any) => <Sidebar {...props} size={200} />; const CustomSidebar = (props: any) => <Sidebar {...props} size={200} />;

View file

@ -1,4 +1,4 @@
const languages = { const languages = {
languages: [ languages: [
{ id: "arb", name: "Arabic" }, { id: "arb", name: "Arabic" },
{ id: "cy-GB", name: "Welsh" }, { id: "cy-GB", name: "Welsh" },

View file

@ -1,3 +1,3 @@
export default function Page() { export default function Page() {
return null; return undefined;
} }

View file

@ -12,12 +12,10 @@ import * as pino from "pino";
declare module "@hapi/hapi" { declare module "@hapi/hapi" {
interface Server { interface Server {
// @ts-expect-error
logger: pino.Logger; logger: pino.Logger;
} }
interface Request { interface Request {
// @ts-expect-error
logger: pino.Logger; logger: pino.Logger;
} }
} }