diff --git a/src/components/icons/TriangleExclamation.tsx b/src/components/icons/TriangleExclamation.tsx deleted file mode 100644 index 8bcbe446aa..0000000000 --- a/src/components/icons/TriangleExclamation.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react' -import Svg, {Path, Rect} from 'react-native-svg' - -import {useCommonSVGProps, Props} from '#/components/icons/common' - -export const TriangleExclamation_Stroke2_Corner2_Rounded = React.forwardRef< - Svg, - Props ->(function LogoImpl(props, ref) { - const {fill, size, style, ...rest} = useCommonSVGProps(props) - - return ( - - - - - ) -}) diff --git a/src/components/icons/Warning.tsx b/src/components/icons/Warning.tsx new file mode 100644 index 0000000000..fc84b28945 --- /dev/null +++ b/src/components/icons/Warning.tsx @@ -0,0 +1,5 @@ +import {createSinglePathSVG} from './TEMPLATE' + +export const Warning_Stroke2_Corner0_Rounded = createSinglePathSVG({ + path: 'M11.14 4.494a.995.995 0 0 1 1.72 0l7.001 12.008a.996.996 0 0 1-.86 1.498H4.999a.996.996 0 0 1-.86-1.498L11.14 4.494Zm3.447-1.007c-1.155-1.983-4.019-1.983-5.174 0L2.41 15.494C1.247 17.491 2.686 20 4.998 20h14.004c2.312 0 3.751-2.509 2.587-4.506L14.587 3.487ZM13 9.019a1 1 0 1 0-2 0v2.994a1 1 0 1 0 2 0V9.02Zm-1 4.731a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z', +}) diff --git a/src/lib/moderation/useModerationCauseDescription.ts b/src/lib/moderation/useModerationCauseDescription.ts index 2c3c79f789..de2e9788f8 100644 --- a/src/lib/moderation/useModerationCauseDescription.ts +++ b/src/lib/moderation/useModerationCauseDescription.ts @@ -5,7 +5,7 @@ import {useGlobalLabelStrings} from './useGlobalLabelStrings' import {useLabelDefinitions} from '#/state/queries/preferences' import {getDefinition, getLabelStrings} from './useLabelInfo' -import {TriangleExclamation_Stroke2_Corner2_Rounded as TriangleExclamation} from '#/components/icons/TriangleExclamation' +import {Warning_Stroke2_Corner0_Rounded as Warning} from '#/components/icons/Warning' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo' import {EyeSlash_Stroke2_Corner0_Rounded as EyeSlash} from '#/components/icons/EyeSlash' import {CircleBanSign_Stroke2_Corner0_Rounded as CircleBanSign} from '#/components/icons/CircleBanSign' @@ -25,7 +25,7 @@ export function useModerationCauseDescription( const {labelDefs, labelers} = useLabelDefinitions() if (!cause) { return { - icon: TriangleExclamation, + icon: Warning, name: _(msg`Content Warning`), description: _( msg`Moderator has chosen to set a general warning on the content.`, @@ -101,7 +101,7 @@ export function useModerationCauseDescription( def.identifier === '!no-unauthenticated' ? EyeSlash : def.severity === 'alert' - ? TriangleExclamation + ? Warning : CircleInfo, name: strings.name, description: strings.description,