Skip to content

Commit b09e6fe

Browse files
committed
restructured pages folder
1 parent 32ba1a7 commit b09e6fe

File tree

15 files changed

+21
-21
lines changed

15 files changed

+21
-21
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "./App.css";
22
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
33
import { Automadeasy } from "./pages/Automadeasy";
4-
import { NavBar } from "./pages/Navbar";
4+
import { NavBar } from "./pages/components/Navbar";
55
import { Editor } from "./pages/Editor";
66
import { Pages } from "./enums/Pages";
77
import { Help } from "./pages/Help";
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export interface PlaygroundSize {
1+
export type PlaygroundSize = {
22
width: number;
33
height: number;
44
}
File renamed without changes.

src/features/Download.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DataContext } from "../pages/Editor";
44
import FileDownloadRoundedIcon from "@mui/icons-material/FileDownloadRounded";
55
import { DownloadProps } from "./props/DownloadProps";
66
import { TransitionModel } from "../models";
7-
import { AutomataData } from "../pages/types/AutomataData";
7+
import { AutomataData } from "../common/types/AutomataData";
88

99
export const Download = (props: DownloadProps) => {
1010
console.log("re rendering Download: props", props);

src/features/Upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useContext } from "react";
22
import { Button, MenuItem } from "@mui/material";
33
import FileUploadRoundedIcon from "@mui/icons-material/FileUploadRounded";
4-
import { AutomataData } from "../pages/types/AutomataData";
4+
import { AutomataData } from "../common/types/AutomataData";
55
import { DataContext } from "../pages/Editor";
66
import { TransitionModel } from "../models";
77
import { StyledTransitionLabel } from "./components/playground/StyledTransitionLabel";

src/features/components/nfaToDfa/props/ResultantDfaProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlaygroundSize } from "../../../../pages/types/PlaygroundSize";
1+
import { PlaygroundSize } from "../../../../common/types/PlaygroundSize";
22
import { RowModel } from "../../../../models";
33

44
export type ResultantDfaProps = {

src/features/hooks/useElementSize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MutableRefObject, useLayoutEffect, useRef, useState } from "react";
22
import useResizeObserver from "@react-hook/resize-observer";
3-
import { PlaygroundSize } from "../../pages/types/PlaygroundSize";
3+
import { PlaygroundSize } from "../../common/types/PlaygroundSize";
44
import { DraggableStateModel } from "../../models";
55

66
export default function useElementSize<T extends HTMLElement = HTMLDivElement>(

src/features/props/MinimizeDfaProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GridColumns } from "@mui/x-data-grid";
2-
import { PlaygroundSize } from "../../pages/types/PlaygroundSize";
2+
import { PlaygroundSize } from "../../common/types/PlaygroundSize";
33
import { RowModel, DraggableStateModel, TransitionModel } from "../../models";
44

55
export type MinimizeDfaProps = {

src/features/props/PlaygroundProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlaygroundSize } from "../../pages/types/PlaygroundSize";
1+
import { PlaygroundSize } from "../../common/types/PlaygroundSize";
22
import { DraggableStateModel, RowModel, TransitionModel } from "../../models";
33
import { SelectedElementType } from "./SelectedElementType";
44

0 commit comments

Comments
 (0)