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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user