-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a23f39
commit e639fe9
Showing
19 changed files
with
201 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/components/DatePicker/index.js → src/components/DatePicker/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/components/DateSelected/index.js → src/components/DateSelected/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// @ts-ignore | ||
import dayjs from "dayjs"; | ||
import React from "react"; | ||
import "./DateSelected.css"; | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
src/components/ServiceCard/index.js → src/components/ServiceCard/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { ReactElement } from "react"; | ||
import DatePicker from "../../components/DatePicker"; | ||
import DateSelected from "../../components/DateSelected"; | ||
import Services from "../../components/Services"; | ||
import Slots from "../../components/Slots"; | ||
import parlourImg from "../../assets/parlour.jpg"; | ||
|
||
type homeTypes = { | ||
services: any; | ||
selectedServicesHandler: Function; | ||
setDateHandler: Function; | ||
setSlotHandler: Function; | ||
slots: any[]; | ||
selectedServices: any; | ||
date: any; | ||
slot: any; | ||
}; | ||
|
||
function Home({ | ||
services, | ||
selectedServicesHandler, | ||
setDateHandler, | ||
setSlotHandler, | ||
slots, | ||
selectedServices, | ||
date, | ||
slot, | ||
}: homeTypes): ReactElement { | ||
return ( | ||
<div> | ||
<div className="parlour-and-services"> | ||
<div className="skew-bg2"></div> | ||
<Services services={services} onSelect={selectedServicesHandler} /> | ||
<div className="parlour-img-holder"> | ||
<img src={parlourImg} alt="parlour" /> | ||
</div> | ||
<div className="skew-bg1"> | ||
<div className="skew-bg1-square"></div> | ||
</div> | ||
</div> | ||
{selectedServices.size > 0 && ( | ||
<DatePicker setDateHandler={setDateHandler} /> | ||
)} | ||
<DateSelected date={date} /> | ||
<Slots slots={slots} setSlot={setSlotHandler} slotSelected={slot?.id} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const users = [ | ||
{ | ||
id: "001", | ||
name: "debashis", | ||
role: "admin", | ||
phoneNumber: "9876543210", | ||
password: "deba1996", | ||
}, | ||
{ | ||
id: "002", | ||
name: "raman", | ||
role: "client", | ||
phoneNumber: "9876543211", | ||
password: "ram123", | ||
}, | ||
{ | ||
id: "003", | ||
name: "ronald", | ||
role: "client", | ||
phoneNumber: "9876543212", | ||
password: "ronxyz", | ||
}, | ||
{ | ||
id: "004", | ||
name: "ravi", | ||
role: "client", | ||
phoneNumber: "9876543213", | ||
password: "r12345", | ||
}, | ||
]; | ||
|
||
export default users; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"jsx": "react", | ||
"outDir": "./dist", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"--downlevelIteration": true | ||
}, | ||
"include": ["./src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare module "*.jpg"; | ||
declare module "*.png"; |