1
1
import { createContext , useContext } from 'react'
2
2
import { type StyleProp , View , type ViewStyle } from 'react-native'
3
3
4
- import { atoms as a , useTheme } from '#/alf'
4
+ import { atoms as a , useBreakpoints , useTheme } from '#/alf'
5
5
import { Button as BaseButton , type ButtonProps } from '#/components/Button'
6
6
import { CircleInfo_Stroke2_Corner0_Rounded as CircleInfoIcon } from '#/components/icons/CircleInfo'
7
7
import { CircleX_Stroke2_Corner0_Rounded as CircleXIcon } from '#/components/icons/CircleX'
@@ -71,9 +71,9 @@ export function Text({
71
71
export function Button ( {
72
72
children,
73
73
...props
74
- } : Omit < ButtonProps , 'size' | 'variant' | 'color' > ) {
74
+ } : Omit < ButtonProps , 'size' | 'variant' > ) {
75
75
return (
76
- < BaseButton size = "tiny" variant = "outline" color = "secondary" { ...props } >
76
+ < BaseButton size = "tiny" { ...props } >
77
77
{ children }
78
78
</ BaseButton >
79
79
)
@@ -103,6 +103,7 @@ export function Outer({
103
103
style ?: StyleProp < ViewStyle >
104
104
} ) {
105
105
const t = useTheme ( )
106
+ const { gtMobile} = useBreakpoints ( )
106
107
const borderColor = {
107
108
info : t . atoms . border_contrast_high . borderColor ,
108
109
tip : t . palette . primary_500 ,
@@ -113,6 +114,7 @@ export function Outer({
113
114
< Context . Provider value = { { type} } >
114
115
< View
115
116
style = { [
117
+ gtMobile ? a . p_md : a . p_sm ,
116
118
a . p_md ,
117
119
a . rounded_sm ,
118
120
a . border ,
0 commit comments