-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move customer info and order history to the side
- Loading branch information
Showing
8 changed files
with
260 additions
and
167 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
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 |
---|---|---|
|
@@ -78,22 +78,48 @@ export default meta; | |
type Story = StoryObj<typeof meta>; | ||
|
||
/** | ||
* Example of chat page with no active call and no orders. | ||
* Example of chat page with no active call and with orders. | ||
*/ | ||
export const ChatPageExample: Story = { | ||
args: { | ||
workspaceId: "1", | ||
userName: "Jane Doe", | ||
avatar: "https://mui.com/static/images/avatar/3.jpg", | ||
isAuthenticated: true, | ||
isActiveCall: false, | ||
isAdmin: true, | ||
isLocalCameraMuted: false, | ||
isLocalMicrophoneMuted: false, | ||
customerProfile: { | ||
name: "Peters Doe", | ||
email: "[email protected]", | ||
phone: "(785)317-9945", | ||
birthday: "1980-01-01", | ||
note: "This is a note" | ||
note: "Here goes a short note about that the user can use to build rapport with the customer" | ||
}, | ||
orders: [] | ||
orders: [ | ||
{ | ||
id: "1001", | ||
name: "First item in the order", | ||
total: 100, | ||
imageUrl: "https://picsum.photos/200", | ||
createdAt: "2021-10-01T00:00:00.000Z" | ||
}, | ||
{ | ||
id: "1001", | ||
name: "Second item in the order", | ||
total: 200, | ||
imageUrl: "https://picsum.photos/200", | ||
createdAt: "2021-10-01T00:00:00.000Z" | ||
}, | ||
{ | ||
id: "2001", | ||
name: "And item on anther order", | ||
total: 300, | ||
imageUrl: "https://picsum.photos/200", | ||
createdAt: "2021-10-01T00:00:00.000Z" | ||
} | ||
] | ||
} | ||
}; | ||
|
||
|
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
Oops, something went wrong.