Skip to content
Snippets Groups Projects
Unverified Commit 34498986 authored by Aleksander Nicacio da Silva's avatar Aleksander Nicacio da Silva Committed by GitHub
Browse files

chore: Changed over mac limit Banner to Callout (#31046)

parent 505547a6
No related branches found
No related tags found
No related merge requests found
import { Banner, Icon, Pagination } from '@rocket.chat/fuselage'; import { Callout, Pagination } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import type { GETLivechatRoomsParams } from '@rocket.chat/rest-typings'; import type { GETLivechatRoomsParams } from '@rocket.chat/rest-typings';
import { usePermission, useTranslation } from '@rocket.chat/ui-contexts'; import { usePermission, useTranslation } from '@rocket.chat/ui-contexts';
...@@ -306,15 +306,14 @@ const CurrentChatsPage = ({ id, onRowClick }: { id?: string; onRowClick: (_id: s ...@@ -306,15 +306,14 @@ const CurrentChatsPage = ({ id, onRowClick }: { id?: string; onRowClick: (_id: s
/> />
)} )}
{isWorkspaceOverMacLimit && ( {isWorkspaceOverMacLimit && (
<Banner <Callout
variant='danger' type='danger'
actionable icon='warning'
icon={<Icon name='warning' size='x24' />}
title={t('The_workspace_has_exceeded_the_monthly_limit_of_active_contacts')} title={t('The_workspace_has_exceeded_the_monthly_limit_of_active_contacts')}
style={{ marginBlock: '2rem' }} style={{ marginBlock: '2rem' }}
> >
{t('Talk_to_your_workspace_admin_to_address_this_issue')} {t('Talk_to_your_workspace_admin_to_address_this_issue')}
</Banner> </Callout>
)} )}
{isSuccess && data?.rooms.length === 0 && queryHasChanged && <GenericNoResults />} {isSuccess && data?.rooms.length === 0 && queryHasChanged && <GenericNoResults />}
{isSuccess && data?.rooms.length === 0 && !queryHasChanged && ( {isSuccess && data?.rooms.length === 0 && !queryHasChanged && (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment