Commit 8de6e632 authored by Florent Chehab's avatar Florent Chehab

refactor(frontend): switch to .jsx for components and moved some files

parent 5685869b
......@@ -27,7 +27,6 @@ module.exports = {
}
],
// The warn should be turned to error at some point
"react/jsx-filename-extension": "warn",
"react/require-default-props": "warn",
"react/no-did-update-set-state": "warn",
"import/prefer-default-export": "warn",
......
......@@ -10,7 +10,7 @@
"build": "webpack --config webpack.config.build.js",
"test": "jest",
"stats": "webpack --config webpack.config.build.js --profile --json > stats.json",
"view-stats": "webpack-bundle-analyzer --host 0.0.0.0 --port 8888 stats.json"
"view-stats": "webpack-bundle-analyzer --host 0.0.0.0 --port 8889 stats.json"
},
"repository": {
"type": "git",
......
......@@ -3,7 +3,7 @@ import TextField from "@material-ui/core/TextField";
import PropTypes from "prop-types";
import keycode from "keycode";
import Markdown from "../../common/markdown/Markdown";
import useBlock from "./useBlock";
import useBlock from "../../../hooks/useBlock";
import truncateString from "../../../utils/truncateString";
/**
......
......@@ -6,7 +6,7 @@ import Button from "@material-ui/core/Button";
import TextField from "@material-ui/core/TextField";
import Paper from "@material-ui/core/Paper";
import { makeStyles } from "@material-ui/styles";
import useBlock from "./useBlock";
import useBlock from "../../../hooks/useBlock";
import DownshiftMultiple from "../../common/DownshiftMultiple";
import CustomNavLink from "../../common/CustomNavLink";
import { APP_ROUTES } from "../../../config/appRoutes";
......
This diff is collapsed.
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