Skip to content

Commit

Permalink
chore: settings tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Dec 8, 2023
1 parent bcc7120 commit 573a0c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const MemoizedSetting = ({
<Callout type='warning'>{callout}</Callout>
</Margins>
)}
{showUpgradeButton}
</Box>
{showUpgradeButton}
</Field>
);
};
Expand Down
7 changes: 3 additions & 4 deletions apps/meteor/client/views/admin/settings/Setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { ISettingColor, SettingEditor, SettingValue } from '@rocket.chat/co
import { isSettingColor, isSetting } from '@rocket.chat/core-typings';
import { Button } from '@rocket.chat/fuselage';
import { useDebouncedCallback } from '@rocket.chat/fuselage-hooks';
import { ExternalLink } from '@rocket.chat/ui-client';
import { useSettingStructure, useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React, { useEffect, useMemo, useState, useCallback } from 'react';
Expand Down Expand Up @@ -113,9 +112,9 @@ function Setting({ className = undefined, settingId, sectionChanged }: SettingPr
const showUpgradeButton = useMemo(
() =>
shouldDisableEnterprise ? (
<ExternalLink to={PRICING_URL}>
<Button>{t('See_Paid_Plan')}</Button>
</ExternalLink>
<Button mbs={4} is='a' href={PRICING_URL} target='_blank'>
{t('See_Paid_Plan')}
</Button>
) : undefined,
[shouldDisableEnterprise, t],
);
Expand Down

0 comments on commit 573a0c8

Please sign in to comment.