1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-16 13:46:16 +02:00

Resolve "Discuss and implement proper API methods."

This commit is contained in:
Maciej Lenartowicz
2019-11-05 11:10:50 +00:00
parent dfa80e64ec
commit 7f8aaea7b8
9 changed files with 122 additions and 244 deletions

View File

@ -9,7 +9,7 @@ import React, { useEffect, useState } from "react";
import PropTypes from "prop-types";
import { Spinner } from "bootstrap/Spinner";
import { useAPIPost } from "api/post";
import { useAPIPost } from "api/hooks";
import { Prompt } from "react-router";
import { useForisModule, useForm } from "../hooks";

View File

@ -8,10 +8,9 @@
import { useCallback, useEffect, useReducer } from "react";
import update from "immutability-helper";
import { useAPIGet } from "api/get";
import { useAPIGet } from "api/hooks";
import { useWSForisModule } from "webSockets/hooks";
const FORM_ACTIONS = {
updateValue: 1,
resetData: 2,