From 25e60548c41949e7ad45d043cbdf8b8cfa3e036a Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 30 Jul 2025 21:05:45 +0300 Subject: Mark old components as deprecated (#8747) * mark a bunch of stuff as deprecated * mark s as deprecated (serverence reference????) * rm type import --- src/view/com/util/text/Text.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/view/com/util/text/Text.tsx') diff --git a/src/view/com/util/text/Text.tsx b/src/view/com/util/text/Text.tsx index 785cef09a..1e49605f4 100644 --- a/src/view/com/util/text/Text.tsx +++ b/src/view/com/util/text/Text.tsx @@ -1,16 +1,16 @@ import React from 'react' -import {StyleSheet, TextProps} from 'react-native' +import {StyleSheet, type TextProps} from 'react-native' import {UITextView} from 'react-native-uitextview' import {lh, s} from '#/lib/styles' -import {TypographyVariant, useTheme} from '#/lib/ThemeContext' +import {type TypographyVariant, useTheme} from '#/lib/ThemeContext' import {logger} from '#/logger' import {isIOS, isWeb} from '#/platform/detection' import {applyFonts, useAlf} from '#/alf' import { childHasEmoji, renderChildrenWithEmoji, - StringChild, + type StringChild, } from '#/alf/typography' export type CustomTextProps = Omit & { @@ -32,7 +32,7 @@ export type CustomTextProps = Omit & { export {Text_DEPRECATED as Text} /** - * @deprecated use Text from Typography instead. + * @deprecated use Text from `#/components/Typography.tsx` instead */ function Text_DEPRECATED({ type = 'md', -- cgit 1.4.1