Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp committed Mar 24, 2022
1 parent 82e14b6 commit 4113ffb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { Story } from '@storybook/react';
import React from 'react';

import NotAvailableOnCall from './NotAvailableOnCall';
import NotAvailableContent from './NotAvailableContent';
import NotAvailableContentWrapper from './NotAvailableContentWrapper';

export const Default: Story = () => <NotAvailableOnCall />;
export const Default: Story = () => (
<NotAvailableContentWrapper>
<NotAvailableContent text='Messages are not available on phone calls' icon='message' />
</NotAvailableContentWrapper>
);

export default {
title: 'components/Composer/NotAvailableOnCall',
component: NotAvailableOnCall,
component: Default,
};
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import { Box } from '@rocket.chat/fuselage';
import React, { ReactElement } from 'react';

import { useTranslation } from '../../../../contexts/TranslationContext';
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>
);
const NotAvailableOnCall = (): ReactElement => {
const t = useTranslation();

return (
<Box h='44px' w='100%' borderColor='disabled' borderWidth='2px'>
<NotAvailableContentWrapper>
<NotAvailableContent icon='message' text={t('Composer_not_available_phone_calls')} />
</NotAvailableContentWrapper>
</Box>
);
};

export default NotAvailableOnCall;

0 comments on commit 4113ffb

Please sign in to comment.