Skip to content

Commit

Permalink
Fix: Warning in console when creating a new test (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomatavares committed Sep 13, 2023
1 parent ce51395 commit 2ea67b9
Show file tree
Hide file tree
Showing 7 changed files with 1,755 additions and 1,492 deletions.
7 changes: 4 additions & 3 deletions web/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"dependencies": {
"@ant-design/colors": "^6.0.0",
"@ant-design/icons": "^4.6.2",
"@ant-design/pro-layout": "^7.16.11",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.3",
"antd": "^4.19.5",
"antd": "^5.8.6",
"axios": "^0.27.2",
"axios-mock-adapter": "^1.21.2",
"chart.js": "^3.7.1",
Expand All @@ -25,9 +26,9 @@
"prettier": "^2.7.1",
"prop-types": "^15.8.1",
"qs": "^6.11.0",
"react": "^17.0.2",
"react": "^18.2.0",
"react-chartjs-2": "^3.0.3",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.10",
"react-resizable": "^3.0.5",
"react-router-dom": "6.4.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CloseCircleOutlined } from "@ant-design/icons";
import { Button, PageHeader, Result, Space, Typography } from "antd";
import { Button, Result, Space, Typography } from "antd";
import { PageHeader } from "@ant-design/pro-layout";
import { useCallback, useEffect, useState } from "react";
import { Link, useNavigate } from "react-router-dom";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button, Col, PageHeader, Popconfirm, Row, Steps } from "antd";
import { Button, Col, Popconfirm, Row, Steps } from "antd";
import { PageHeader } from "@ant-design/pro-layout";
import { useCallback } from "react";
import { useNavigate } from "react-router-dom";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
Button,
Col,
PageHeader,
Popconfirm,
Row,
Space,
Tabs,
Typography
} from "antd";
import { PageHeader } from "@ant-design/pro-layout";
import { useCallback, useState } from "react";
import { useNavigate } from "react-router-dom";

Expand Down
10 changes: 6 additions & 4 deletions web/frontend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";
import { ErrorBoundary } from "react-error-boundary";

import { CurrentWorkspaceContextProvider } from "./context/CurrentWorkspace";
Expand All @@ -20,7 +20,10 @@ function ErrorFallback({ error }) {
);
}

ReactDOM.render(
const rootElement = document.getElementById("root");
const root = createRoot(rootElement);

root.render(
<ErrorBoundary FallbackComponent={ErrorFallback}>
<UserContextProvider>
<CurrentWorkspaceContextProvider>
Expand All @@ -29,6 +32,5 @@ ReactDOM.render(
</RunningContextProvider>
</CurrentWorkspaceContextProvider>
</UserContextProvider>
</ErrorBoundary>,
document.getElementById("root")
</ErrorBoundary>
);
2 changes: 1 addition & 1 deletion web/frontend/src/pages/Layout/layout.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "~antd/dist/antd.css";
@import "~antd/dist/reset.css";

/* https://ant.design/components/layout/ */
:root {
Expand Down
3,220 changes: 1,739 additions & 1,481 deletions web/frontend/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 2ea67b9

Please sign in to comment.