diff --git a/.eslintrc.js b/.eslintrc.js index e25c9835e1..f8d05b5c20 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,6 +32,7 @@ module.exports = { 'H6', 'P', 'Admonition', + 'Admonition.Admonition', ], impliedTextProps: [], suggestedTextWrappers: { diff --git a/src/components/Admonition.tsx b/src/components/Admonition.tsx index 8b01a8abaf..8df4934bea 100644 --- a/src/components/Admonition.tsx +++ b/src/components/Admonition.tsx @@ -2,6 +2,7 @@ import React from 'react' import {StyleProp, View, ViewStyle} from 'react-native' import {atoms as a, useBreakpoints, useTheme} from '#/alf' +import {Button as BaseButton, ButtonProps} from '#/components/Button' import {CircleInfo_Stroke2_Corner0_Rounded as ErrorIcon} from '#/components/icons/CircleInfo' import {Eye_Stroke2_Corner0_Rounded as InfoIcon} from '#/components/icons/Eye' import {Leaf_Stroke2_Corner0_Rounded as TipIcon} from '#/components/icons/Leaf' @@ -49,22 +50,29 @@ export function Text({ return ( + style={[a.flex_1, a.text_sm, a.leading_snug, a.pr_md, style]}> {children} ) } +export function Button({ + children, + ...props +}: Omit) { + return ( + + {children} + + ) +} + export function Row({children}: {children: React.ReactNode}) { - return {children} + return ( + + {children} + + ) } export function Outer({