forked from github/plane
fix: minor type updates
This commit is contained in:
parent
884b219508
commit
3876e1f56b
@ -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 { useRouter } from "next/router";
|
||||
import { observer } from "mobx-react-lite";
|
||||
@ -31,7 +31,7 @@ const tabOptions = [
|
||||
];
|
||||
|
||||
type Props = {
|
||||
label: string | React.ReactNode;
|
||||
label: string | ReactNode;
|
||||
value: string | null;
|
||||
control: Control<any>;
|
||||
onChange: (data: string) => void;
|
||||
@ -41,7 +41,7 @@ type Props = {
|
||||
// services
|
||||
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 [image, setImage] = useState<File | null>(null);
|
||||
|
3
web/types/app.d.ts
vendored
3
web/types/app.d.ts
vendored
@ -9,4 +9,7 @@ export interface IAppConfig {
|
||||
github_client_id: string | null;
|
||||
magic_login: boolean;
|
||||
slack_client_id: string | null;
|
||||
posthog_api_key: string | null;
|
||||
posthog_host: string | null;
|
||||
has_unsplash_configured: boolean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user