Skip to content

Commit c6c1554

Browse files
committed
remove unused
1 parent c3b22e8 commit c6c1554

File tree

12 files changed

+5
-18
lines changed

12 files changed

+5
-18
lines changed

src/App.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import React from "react";
2-
import {
3-
BrowserRouter as Router,
4-
Routes,
5-
Route,
6-
Navigate,
7-
} from "react-router-dom";
1+
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
82

93
import CommonLayout from "./shared/components/CommonLayout";
104
import HomePage from "./home/pages/HomePage";

src/cinemas/pages/CinemasPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function CinemasPage() {
32
return <>Cinemas</>;
43
}

src/home/pages/HomePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function HomePage() {
32
return <>Home</>;
43
}

src/movies/pages/MoviePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function MoviePage() {
32
return <>Movie</>;
43
}

src/nowshowing/pages/NowShowingPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function NowShowingPage() {
32
return <>NowShowing</>;
43
}

src/orders/pages/OrderConfirmPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function OrderConfirmPage() {
32
return <>OrderConfirm</>;
43
}

src/orders/pages/PurchasePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function PurchasePage() {
32
return <>Purchase</>;
43
}

src/session/pages/SessionPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function SessionPage() {
32
return <>Session</>;
43
}

src/shared/components/CommonLayout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, { useContext } from "react";
2-
import { Link, useLocation } from "react-router-dom";
1+
import React from "react";
2+
import { Link } from "react-router-dom";
33

44
// import { AuthContext } from "../../shared/context/auth-context";
55

@@ -11,7 +11,6 @@ interface CommonLayoutProps {
1111

1212
const CommonLayout = ({ children }: CommonLayoutProps) => {
1313
// const auth = useContext(AuthContext);
14-
const location = useLocation();
1514
// const isNowShowingPage = location.pathname === "/nowshowing";
1615
return (
1716
<div className="bg-creamy w-screen min-h-screen flex flex-col justify-between">

src/users/pages/AuthPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
function AuthPage() {
32
return <>Auth</>;
43
}

0 commit comments

Comments
 (0)