fix(app): restore assistant link color
This commit is contained in:
@@ -1244,15 +1244,20 @@ const MemoizedMarkdownBlock = React.memo(function MemoizedMarkdownBlock({
|
|||||||
interface MarkdownInheritedTextProps {
|
interface MarkdownInheritedTextProps {
|
||||||
inheritedStyles: TextStyle;
|
inheritedStyles: TextStyle;
|
||||||
textStyle: TextStyle;
|
textStyle: TextStyle;
|
||||||
|
style?: StyleProp<TextStyle>;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
function MarkdownInheritedText({
|
function MarkdownInheritedText({
|
||||||
inheritedStyles,
|
inheritedStyles,
|
||||||
textStyle,
|
textStyle,
|
||||||
|
style: overrideStyle,
|
||||||
children,
|
children,
|
||||||
}: MarkdownInheritedTextProps) {
|
}: MarkdownInheritedTextProps) {
|
||||||
const style = useMemo(() => [inheritedStyles, textStyle], [inheritedStyles, textStyle]);
|
const style = useMemo(
|
||||||
|
() => [inheritedStyles, textStyle, overrideStyle],
|
||||||
|
[inheritedStyles, textStyle, overrideStyle],
|
||||||
|
);
|
||||||
return <Text style={style}>{children}</Text>;
|
return <Text style={style}>{children}</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user