Commit 81f10fe3 authored by Florent Chehab's avatar Florent Chehab
Browse files

Reorganized all js files, everything should be broken now :D

parent 137f3e7a
import React, { Component } from "react"; import React, { Component } from "react";
import Loading from "./other/Loading"; import Loading from "./other/Loading";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { successActionsWithReads, getLatestRead } from "../api/utils"; import { successActionsWithReads, getLatestRead } from "../../api/utils";
class CustomComponentForAPI extends Component { class CustomComponentForAPI extends Component {
customErrorHandlers = {} customErrorHandlers = {}
......
...@@ -9,11 +9,11 @@ import { BrowserRouter as Router } from "react-router-dom"; ...@@ -9,11 +9,11 @@ import { BrowserRouter as Router } from "react-router-dom";
import CustomComponentForAPI from "./CustomComponentForAPI"; import CustomComponentForAPI from "./CustomComponentForAPI";
import "typeface-roboto"; import "typeface-roboto";
import areSameThemes from "../utils/areSameThemes"; import areSameThemes from "../../utils/areSameThemes";
import getActions from "../api/getActions"; import getActions from "../../api/getActions";
import { saveAppTheme } from "../actions/theme"; import { saveAppTheme } from "../../actions/theme";
/** /**
......
import { Component } from "react"; import { Component } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import areSameObjects from "../../../utils/areSameObjects"; import areSameObjects from "../../utils/areSameObjects";
import renderFieldsMixIn from "./renderFieldsMixIn"; import renderFieldsMixIn from "./renderFieldsMixIn";
import CustomError from "../../../utils/CustomError"; import CustomError from "../../utils/CustomError";
/** /**
* React component that should contain `Field` instances. * React component that should contain `Field` instances.
......
import React from "react"; import React from "react";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
import getObjModerationLevel from "../../../utils/getObjModerationLevels"; import getObjModerationLevel from "../../utils/getObjModerationLevels";
import SelectField from "./fields/SelectField"; import SelectField from "./fields/SelectField";
import UsefulLinksField from "./fields/UsefulLinksField"; import UsefulLinksField from "./fields/UsefulLinksField";
import MarkdownField from "./fields/MarkdownField"; import MarkdownField from "./fields/MarkdownField";
...@@ -8,8 +8,8 @@ import TextField from "./fields/TextField"; ...@@ -8,8 +8,8 @@ import TextField from "./fields/TextField";
import MultiSelectField from "./fields/MultiSelectField"; import MultiSelectField from "./fields/MultiSelectField";
import NumberField from "./fields/NumberField"; import NumberField from "./fields/NumberField";
import store from "../../../store/index"; import store from "../../store/index";
import { getLatestRead } from "../../../api/utils"; import { getLatestRead } from "../../api/utils";
export default { export default {
/** /**
......
...@@ -7,11 +7,11 @@ import Toolbar from "@material-ui/core/Toolbar"; ...@@ -7,11 +7,11 @@ import Toolbar from "@material-ui/core/Toolbar";
import IconButton from "@material-ui/core/IconButton"; import IconButton from "@material-ui/core/IconButton";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
import CloseIcon from "@material-ui/icons/Close"; import CloseIcon from "@material-ui/icons/Close";
import Alert from "./Alert"; import Alert from "../../shared/Alert";
// Form is imported only for type hints // Form is imported only for type hints
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import Form from "./Form"; import Form from "../../shared/Form";
/** /**
......
...@@ -2,7 +2,7 @@ import React from "react"; ...@@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import Form from "./Form"; import Form from "./Form";
import CustomError from "../../../utils/CustomError"; import CustomError from "../../../../utils/CustomError";
const frequencyOptions = [ const frequencyOptions = [
{ value: "w", label: "Il s'agit du montant hebdomadaire" }, { value: "w", label: "Il s'agit du montant hebdomadaire" },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment