Mark old components as deprecated (#8747)

* mark a bunch of stuff as deprecated

* mark s as deprecated (serverence reference????)

* rm type import
This commit is contained in:
Samuel Newman
2025-07-30 21:05:45 +03:00
committed by GitHub
parent fade51e9eb
commit 25e60548c4
12 changed files with 124 additions and 34 deletions
+10 -2
View File
@@ -1,7 +1,11 @@
import {useMemo} from 'react'
import {TextStyle, ViewStyle} from 'react-native'
import {type TextStyle, type ViewStyle} from 'react-native'
import {PaletteColor, PaletteColorName, useTheme} from '../ThemeContext'
import {
type PaletteColor,
type PaletteColorName,
useTheme,
} from '../ThemeContext'
export interface UsePaletteValue {
colors: PaletteColor
@@ -16,6 +20,10 @@ export interface UsePaletteValue {
link: TextStyle
icon: TextStyle
}
/**
* @deprecated use `useTheme` from `#/alf`
*/
export function usePalette(color: PaletteColorName): UsePaletteValue {
const theme = useTheme()
return useMemo(() => {