Skip to content

Commit

Permalink
chore: adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva committed Oct 24, 2023
1 parent 4262540 commit b92bd7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/meteor/ee/client/sidebar/footer/SidebarFooterWatermark.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Box, Skeleton } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
import { useTranslation } from 'react-i18next';

import { useLicense } from '../../../../client/hooks/useLicense';

export const SidebarFooterWatermark = (): ReactElement | null => {
const t = useTranslation();
const { t } = useTranslation();

const { data: { activeModules = [], trial: isTrial = false, tags } = {}, isLoading, isError } = useLicense();
const [{ name: planName }] = tags ?? [{ name: 'Community' }];
const { data: { activeModules = [], trial: isTrial = false, tags = [] } = {}, isLoading, isError } = useLicense();
const planName = tags[0]?.name ?? 'Community';

const isWatermarkHidden = !isTrial && activeModules.includes('hide-watermark');

Expand All @@ -24,7 +24,7 @@ export const SidebarFooterWatermark = (): ReactElement | null => {
{t('Powered_by_RocketChat')}
</Box>
{isLoading || isError ? (
<Skeleton width='5rem' height='1rem' />
<Skeleton width='80px' height='16px' />
) : (
<Box fontScale='micro' color='pure-white' pbe={4}>
{planName} {isTrial ? 'trial' : ''}
Expand Down

0 comments on commit b92bd7a

Please sign in to comment.