Details
74 |{description}
75 |├── public ├── robots.txt ├── favicon.ico ├── logo192.png ├── logo512.png ├── manifest.json └── index.html ├── src ├── images │ ├── room-1.jpeg │ ├── room-3.jpeg │ ├── gif │ │ ├── loading-gear.gif │ │ └── loading-arrow.gif │ └── notfound.svg ├── Redux │ ├── Store.js │ └── Reducer.js ├── Components │ ├── Title.jsx │ ├── Rooms.jsx │ ├── Banner.jsx │ ├── Loading.jsx │ ├── StyledHero.jsx │ ├── ProtectedRoute.js │ ├── RoomsContainer.jsx │ ├── Room.jsx │ ├── RoomsList.jsx │ ├── Users.jsx │ ├── Login.jsx │ ├── Bookings.jsx │ ├── Navbar.jsx │ ├── SingleRooms.jsx │ ├── AddRooms.jsx │ └── updateRoom.jsx ├── index.js ├── firebase.js ├── index.css ├── contexts │ └── UserAuthContext.js ├── App.js └── App.css ├── .gitignore ├── README.md └── package.json /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/public/logo512.png -------------------------------------------------------------------------------- /src/images/room-1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/src/images/room-1.jpeg -------------------------------------------------------------------------------- /src/images/room-3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/src/images/room-3.jpeg -------------------------------------------------------------------------------- /src/images/gif/loading-gear.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/src/images/gif/loading-gear.gif -------------------------------------------------------------------------------- /src/images/gif/loading-arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nabia-Sheikh/hotel-management-admin/HEAD/src/images/gif/loading-arrow.gif -------------------------------------------------------------------------------- /src/Redux/Store.js: -------------------------------------------------------------------------------- 1 | import { createStore } from "redux"; 2 | import { reducer } from "./Reducer"; 3 | 4 | export const store = createStore(reducer); -------------------------------------------------------------------------------- /src/Components/Title.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Title({ title }) { 4 | return ( 5 |
{subtitle}
9 | {children} 10 |per night
18 |{name}
26 || ID | 22 |Name | 23 |Phone No. | 25 |Role | 26 ||
|---|---|---|---|---|
| {item.id} | 32 |{item.name} | 33 |{item.email} | 34 |{item.number} | 35 |{item.isAdmin ? "Admin" : "User"} | 36 |
| ID | 54 |Name | 56 |Room type | 57 |Start Date | 58 |End Date | 59 |Capactiy | 60 |Price | 61 |Status | 62 |||
|---|---|---|---|---|---|---|---|---|---|
| {booking.id} | 69 |{booking.refID} | 70 |{booking.name} | 71 |{booking.type && booking.type.toUpperCase()} | 72 |{booking.startDate} | 73 |{booking.endDate} | 74 |{booking.capacity} | 75 |{booking.totalPrice} | 76 |
80 | |
89 |
90 | |
99 | >
100 | ) : (
101 | <>>
102 | )}
103 | >
104 |
{description}
75 |