-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
e2b83fb
commit 82e14b6
Showing
10 changed files
with
42 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
client/components/voip/composer/NotAvailableOnCall/NotAvailable.stories.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,11 @@ | ||
import { Story } from '@storybook/react'; | ||
import React from 'react'; | ||
|
||
import NotAvailableOnCall from './NotAvailableOnCall'; | ||
|
||
export const Default: Story = () => <NotAvailableOnCall />; | ||
|
||
export default { | ||
title: 'components/Composer/NotAvailableOnCall', | ||
component: NotAvailableOnCall, | ||
}; |
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: 12 additions & 0 deletions
12
client/components/voip/composer/NotAvailableOnCall/NotAvailableContentWrapper.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,12 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import React, { ReactElement } from 'react'; | ||
|
||
type NotAvailableProps = { | ||
children: ReactElement; | ||
}; | ||
|
||
const NotAvailableContentWrapper = (props: NotAvailableProps): ReactElement => ( | ||
<Box w='full' h='full' backgroundColor='neutral-100' {...props} /> | ||
); | ||
|
||
export default NotAvailableContentWrapper; |
15 changes: 15 additions & 0 deletions
15
client/components/voip/composer/NotAvailableOnCall/NotAvailableOnCall.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,15 @@ | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import React, { ReactElement } from 'react'; | ||
|
||
import NotAvailableContent from './NotAvailableContent'; | ||
import NotAvailableContentWrapper from './NotAvailableContentWrapper'; | ||
|
||
const NotAvailableOnCall = (): ReactElement => ( | ||
<Box h='44px' w='100%' borderColor='disabled' borderWidth='2px'> | ||
<NotAvailableContentWrapper> | ||
<NotAvailableContent icon='message' text='Composer_not_available_phone_calls' /> | ||
</NotAvailableContentWrapper> | ||
</Box> | ||
); | ||
|
||
export default NotAvailableOnCall; |
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 @@ | ||
export { default } from './NotAvailableOnCall'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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