1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

removed player reducer, migrated to CRA 5

This commit is contained in:
Fedor Katurov 2022-01-07 18:32:22 +07:00
parent 88f8fe21f7
commit 558e8f8a4f
211 changed files with 7131 additions and 10318 deletions

View file

@ -1,4 +1,4 @@
import { useCallback } from 'react';
import { useCallback } from "react";
/** wraps text inside textarea with tags */
export const useFormatWrapper = (

View file

@ -1,7 +1,7 @@
import { useEffect } from 'react';
import { useFlowStore } from '~/store/flow/useFlowStore';
import { hideLoader } from '~/utils/dom/hideLoader';
import { useFlowLoader } from '~/hooks/flow/useFlowLoader';
import { useEffect } from "react";
import { useFlowStore } from "~/store/flow/useFlowStore";
import { hideLoader } from "~/utils/dom/hideLoader";
import { useFlowLoader } from "~/hooks/flow/useFlowLoader";
/** simply waits for all data to settle and then show the app */
export const useGlobalLoader = () => {

View file

@ -1,5 +1,5 @@
import { useCallback } from 'react';
import { getImageFromPaste } from '~/utils/uploader';
import { useCallback } from "react";
import { getImageFromPaste } from "~/utils/uploader";
// useInputPasteUpload attaches event listener to input, that calls onUpload if user pasted any image
export const useInputPasteUpload = (onUpload: (files: File[]) => void) => {