Compare commits

...

1 Commits

Author SHA1 Message Date
sriram veeraghanta
3876e1f56b fix: minor type updates 2023-11-09 20:28:45 +05:30
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import React, { useEffect, useState, useRef, useCallback } from "react"; import { FC, ReactNode, useEffect, useState, useRef, useCallback } from "react";
import Image from "next/image"; import Image from "next/image";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
@ -31,7 +31,7 @@ const tabOptions = [
]; ];
type Props = { type Props = {
label: string | React.ReactNode; label: string | ReactNode;
value: string | null; value: string | null;
control: Control<any>; control: Control<any>;
onChange: (data: string) => void; onChange: (data: string) => void;
@ -41,7 +41,7 @@ type Props = {
// services // services
const fileService = new FileService(); const fileService = new FileService();
export const ImagePickerPopover: React.FC<Props> = observer((props) => { export const ImagePickerPopover: FC<Props> = observer((props) => {
const { label, value, control, onChange, disabled = false } = props; const { label, value, control, onChange, disabled = false } = props;
const [image, setImage] = useState<File | null>(null); const [image, setImage] = useState<File | null>(null);

3
web/types/app.d.ts vendored
View File

@ -9,4 +9,7 @@ export interface IAppConfig {
github_client_id: string | null; github_client_id: string | null;
magic_login: boolean; magic_login: boolean;
slack_client_id: string | null; slack_client_id: string | null;
posthog_api_key: string | null;
posthog_host: string | null;
has_unsplash_configured: boolean;
} }