-
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.
Merge pull request #162 from La-Fresca/top-level-manager
View delivery persons - kitchen manager
- Loading branch information
Showing
12 changed files
with
746 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
src/components/KitchenManager/Tables/DeliveryPerson/Components/ChevronDownIcon.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
export const ChevronDownIcon = ({strokeWidth = 1.5, ...otherProps}) => ( | ||
<svg | ||
aria-hidden="true" | ||
fill="none" | ||
focusable="false" | ||
height="1em" | ||
role="presentation" | ||
viewBox="0 0 24 24" | ||
width="1em" | ||
{...otherProps} | ||
> | ||
<path | ||
d="m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeMiterlimit={10} | ||
strokeWidth={strokeWidth} | ||
/> | ||
</svg> | ||
); |
24 changes: 24 additions & 0 deletions
24
src/components/KitchenManager/Tables/DeliveryPerson/Components/PlusIcon.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
export const PlusIcon = ({size = 24, width, height, ...props}) => ( | ||
<svg | ||
aria-hidden="true" | ||
fill="none" | ||
focusable="false" | ||
height={size || height} | ||
role="presentation" | ||
viewBox="0 0 24 24" | ||
width={size || width} | ||
{...props} | ||
> | ||
<g | ||
fill="none" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={1.5} | ||
> | ||
<path d="M6 12h12" /> | ||
<path d="M12 18V6" /> | ||
</g> | ||
</svg> | ||
); |
28 changes: 28 additions & 0 deletions
28
src/components/KitchenManager/Tables/DeliveryPerson/Components/SearchIcon.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
export const SearchIcon = (props) => ( | ||
<svg | ||
aria-hidden="true" | ||
fill="none" | ||
focusable="false" | ||
height="1em" | ||
role="presentation" | ||
viewBox="0 0 24 24" | ||
width="1em" | ||
{...props} | ||
> | ||
<path | ||
d="M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
/> | ||
<path | ||
d="M22 22L20 20" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
/> | ||
</svg> | ||
); |
19 changes: 19 additions & 0 deletions
19
src/components/KitchenManager/Tables/DeliveryPerson/Components/VerticalDotsIcon.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {IconSvgProps} from "./types"; | ||
|
||
export const VerticalDotsIcon = ({size = 24, width, height, ...props}: IconSvgProps) => ( | ||
<svg | ||
aria-hidden="true" | ||
fill="none" | ||
focusable="false" | ||
height={size || height} | ||
role="presentation" | ||
viewBox="0 0 24 24" | ||
width={size || width} | ||
{...props} | ||
> | ||
<path | ||
d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); |
17 changes: 17 additions & 0 deletions
17
src/components/KitchenManager/Tables/DeliveryPerson/Components/data.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const columns = [ | ||
{name: "ID", uid: "id", sortable: true}, | ||
{name: "Name", uid: "name", sortable: true}, | ||
{name: "Price", uid: "price", sortable: true}, | ||
{name: "Availability", uid: "available", sortable: true}, | ||
{name: "Discount", uid: "discountStatus"}, | ||
{name: "Features", uid: "features", sortable: true}, | ||
{name: "Status", uid: "status", sortable: true}, | ||
{name: "Actions", uid: "actions"} | ||
]; | ||
|
||
const statusOptions = [ | ||
{name: "Approved", uid: '0'}, | ||
{name: "Pending", uid: '2'}, | ||
]; | ||
|
||
export {columns, statusOptions}; |
5 changes: 5 additions & 0 deletions
5
src/components/KitchenManager/Tables/DeliveryPerson/Components/types.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {SVGProps} from "react"; | ||
|
||
export type IconSvgProps = SVGProps<SVGSVGElement> & { | ||
size?: number; | ||
}; |
Oops, something went wrong.