From f369a7c76585b4a18695ce84e6830262e7ca29ca Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 20 Mar 2023 21:42:54 -0500 Subject: [PATCH] Use "danger" text for deleting account and group --- app/soapbox/features/group/manage-group.tsx | 4 ++-- app/soapbox/features/settings/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/group/manage-group.tsx b/app/soapbox/features/group/manage-group.tsx index e7dea7f20b..384b2f8883 100644 --- a/app/soapbox/features/group/manage-group.tsx +++ b/app/soapbox/features/group/manage-group.tsx @@ -5,7 +5,7 @@ import { useHistory } from 'react-router-dom'; import { deleteGroup, editGroup } from 'soapbox/actions/groups'; import { openModal } from 'soapbox/actions/modals'; import List, { ListItem } from 'soapbox/components/list'; -import { CardBody, Column, Spinner } from 'soapbox/components/ui'; +import { CardBody, Column, Spinner, Text } from 'soapbox/components/ui'; import { useAppDispatch, useGroup } from 'soapbox/hooks'; import ColumnForbidden from '../ui/components/column-forbidden'; @@ -78,7 +78,7 @@ const ManageGroup: React.FC = ({ params }) => { {group.relationship.role === 'owner' && ( - + {intl.formatMessage(messages.deleteGroup)}} onClick={onDeleteGroup} /> )} diff --git a/app/soapbox/features/settings/index.tsx b/app/soapbox/features/settings/index.tsx index e01ed848c6..77bb22ef8f 100644 --- a/app/soapbox/features/settings/index.tsx +++ b/app/soapbox/features/settings/index.tsx @@ -4,7 +4,7 @@ import { useHistory } from 'react-router-dom'; import { fetchMfa } from 'soapbox/actions/mfa'; import List, { ListItem } from 'soapbox/components/list'; -import { Card, CardBody, CardHeader, CardTitle, Column } from 'soapbox/components/ui'; +import { Card, CardBody, CardHeader, CardTitle, Column, Text } from 'soapbox/components/ui'; import { useAppDispatch, useAppSelector, useFeatures, useOwnAccount } from 'soapbox/hooks'; import Preferences from '../preferences'; @@ -155,7 +155,7 @@ const Settings = () => { ))} {features.security && ( - + {intl.formatMessage(messages.deleteAccount)}} onClick={navigateToDeleteAccount} /> )}