Skip to content

Commit

Permalink
refactor: refactor and clean code (#54)
Browse files Browse the repository at this point in the history
* chore: remove commented out code

* fix: remove unused state

* refactor: extract code to function

* chore: remove todo

* chore: remove unused imports

* chore: remove commented out code

* fix: react component names uppercase

* fix: comparing to a new constructed object
  • Loading branch information
rubenmate authored Jul 7, 2024
1 parent fbbf984 commit 67b3307
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 131 deletions.
6 changes: 0 additions & 6 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// @ts-check
const { defineConfig, devices } = require('@playwright/test');

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* @see https://playwright.dev/docs/test-configuration
*/
Expand Down
4 changes: 1 addition & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import "./styles.css";
import DiagramEditor from "./components/DiagramEditor/DiagramEditor";

export default function App() {
const [data, setData] = React.useState(null);

return (
<div className="App">
<div className="container">
<DiagramEditor data={data} />
<DiagramEditor />
</div>
</div>
);
Expand Down
Loading

0 comments on commit 67b3307

Please sign in to comment.