diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-07-30 21:05:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-30 11:05:45 -0700 |
commit | 25e60548c41949e7ad45d043cbdf8b8cfa3e036a (patch) | |
tree | ca5b9327203c98ce573f2c73340b61bc83c0dea1 /src/view/com/util/forms/ToggleButton.tsx | |
parent | fade51e9eba84cfba1a8797aafc4958ab3764deb (diff) | |
download | voidsky-25e60548c41949e7ad45d043cbdf8b8cfa3e036a.tar.zst |
Mark old components as deprecated (#8747)
* mark a bunch of stuff as deprecated * mark s as deprecated (serverence reference????) * rm type import
Diffstat (limited to 'src/view/com/util/forms/ToggleButton.tsx')
-rw-r--r-- | src/view/com/util/forms/ToggleButton.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/view/com/util/forms/ToggleButton.tsx b/src/view/com/util/forms/ToggleButton.tsx index 31222aafe..ca9d9fb49 100644 --- a/src/view/com/util/forms/ToggleButton.tsx +++ b/src/view/com/util/forms/ToggleButton.tsx @@ -1,12 +1,21 @@ -import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native' +import { + type StyleProp, + StyleSheet, + type TextStyle, + View, + type ViewStyle, +} from 'react-native' import {choose} from '#/lib/functions' import {colors} from '#/lib/styles' import {useTheme} from '#/lib/ThemeContext' -import {TypographyVariant} from '#/lib/ThemeContext' +import {type TypographyVariant} from '#/lib/ThemeContext' import {Text} from '../text/Text' -import {Button, ButtonType} from './Button' +import {Button, type ButtonType} from './Button' +/** + * @deprecated use Toggle from `#/components/form/Toggle.tsx` instead + */ export function ToggleButton({ testID, type = 'default-light', |