udpate type

This commit is contained in:
Abhinav 2022-06-15 19:28:49 +05:30
parent 6cef335264
commit 9f0cadacaa

View file

@ -18,12 +18,12 @@ import constants from 'utils/strings/constants';
import { CheckmarkIcon } from './checkmarkIcon'; import { CheckmarkIcon } from './checkmarkIcon';
import { MappingEntry } from './mappingEntry'; import { MappingEntry } from './mappingEntry';
interface NewType { interface Iprops {
open: boolean; open: boolean;
onClose: () => void; onClose: () => void;
} }
export default function WatchFolderModal({ open, onClose }: NewType) { export default function WatchFolderModal({ open, onClose }: Iprops) {
const [mappings, setMappings] = useState<WatchMapping[]>([]); const [mappings, setMappings] = useState<WatchMapping[]>([]);
const appContext = useContext(AppContext); const appContext = useContext(AppContext);