diff --git a/app/src/App.js b/app/src/App.js index 115798d8..ec6e8bbb 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -13,7 +13,7 @@ import { getAuthToken } from "./api/gram/util/authToken"; import "./App.css"; import AdminPage from "./components/admin/AdminPage"; import { ModalManager } from "./components/elements/modal/ModalManager"; -import ErrorPage from "./components/error-page"; +import { ErrorPage } from "./components/elements/ErrorPage"; import Home from "./components/home/Home"; import { Login } from "./components/login/Login"; import { LoginCallback } from "./components/login/LoginCallback"; diff --git a/app/src/components/error-line/ErrorLine.css b/app/src/components/elements/ErrorLine.css similarity index 100% rename from app/src/components/error-line/ErrorLine.css rename to app/src/components/elements/ErrorLine.css diff --git a/app/src/components/elements/ErrorLine.js b/app/src/components/elements/ErrorLine.js new file mode 100644 index 00000000..75c25dc0 --- /dev/null +++ b/app/src/components/elements/ErrorLine.js @@ -0,0 +1,6 @@ +import React from "react"; +import "./ErrorLine.css"; + +export function ErrorLine({ message }) { + return
{code.toString()}
+{desc[code.toString()]}
+{this.props.code.toString()}
-{desc[this.props.code.toString()]}
-