mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Modificated structure of admin indentify
This commit is contained in:
12
src/App.js
12
src/App.js
@@ -9,11 +9,11 @@ import {
|
||||
Link
|
||||
} from "react-router-dom";
|
||||
import AppHeader from "./components/Game/components/AppHeader/AppHeader";
|
||||
import AdminHeader from "./components/Admin/Header/AdminHeader";
|
||||
import ControlPanel from "./components/Admin/Identify/Identify";
|
||||
import Identify from "./components/Admin/Identify/Identify";
|
||||
import AdminHeader from "./components/AdminIdentify/Header/AdminHeader";
|
||||
import ControlPanel from "./components/AdminIdentify/Identify/Identify";
|
||||
import Identify from "./components/AdminIdentify/Identify/Identify";
|
||||
import Game from "./components/Game/Game";
|
||||
import Admin from "./components/Admin/Admin";
|
||||
import AdminIdentify from "./components/AdminIdentify/AdminIdentify";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
@@ -21,9 +21,11 @@ function App() {
|
||||
<>
|
||||
<Switch>
|
||||
|
||||
|
||||
|
||||
<Route path='/identify'>
|
||||
|
||||
<Admin />
|
||||
<AdminIdentify />
|
||||
|
||||
</Route>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react'
|
||||
import AdminHeader from './Header/AdminHeader'
|
||||
import Identify from './Identify/Identify'
|
||||
|
||||
const Admin = () => {
|
||||
const AdminIdentify = () => {
|
||||
return (
|
||||
<>
|
||||
<AdminHeader />
|
||||
@@ -11,4 +11,4 @@ const Admin = () => {
|
||||
)
|
||||
}
|
||||
|
||||
export default Admin
|
||||
export default AdminIdentify
|
||||
Reference in New Issue
Block a user