Automatically resolve hosting provider from handle (#11053)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Samuel Newman
2026-07-07 14:21:58 +03:00
committed by GitHub
parent 640662d57c
commit 9ff248528b
23 changed files with 1532 additions and 523 deletions
-30
View File
@@ -1,30 +0,0 @@
import {View} from 'react-native'
import {atoms as a, useTheme} from '#/alf'
import {Warning_Stroke2_Corner0_Rounded as Warning} from '#/components/icons/Warning'
import {Text} from '#/components/Typography'
export function FormError({error}: {error?: string}) {
const t = useTheme()
if (!error) return null
return (
<View
style={[
{backgroundColor: t.palette.negative_400},
a.flex_row,
a.rounded_sm,
a.p_md,
a.gap_sm,
]}>
<Warning fill={t.palette.white} size="md" />
<View style={[a.flex_1]}>
<Text
style={[{color: t.palette.white}, a.font_semi_bold, a.leading_snug]}>
{error}
</Text>
</View>
</View>
)
}
+4
View File
@@ -47,6 +47,10 @@ const Context = createContext<{
})
Context.displayName = 'TextFieldContext'
export function useTextFieldContext() {
return useContext(Context)
}
export type RootProps = React.PropsWithChildren<
{isInvalid?: boolean} & TextStyleProp
>