forked from github/plane
Compare commits
1 Commits
preview
...
fix/unspas
Author | SHA1 | Date | |
---|---|---|---|
|
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 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
3
web/types/app.d.ts
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user