From 6a46e6ac708992f031668a7faf5bbc7922108d5f Mon Sep 17 00:00:00 2001 From: aharwood9 Date: Tue, 14 Mar 2023 16:08:19 +0000 Subject: [PATCH] fix: add style to bullet --- .../Message/MessageSimple/utils/renderText.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/package/src/components/Message/MessageSimple/utils/renderText.tsx b/package/src/components/Message/MessageSimple/utils/renderText.tsx index 164afc2081..c3205e702e 100644 --- a/package/src/components/Message/MessageSimple/utils/renderText.tsx +++ b/package/src/components/Message/MessageSimple/utils/renderText.tsx @@ -327,7 +327,10 @@ export const ListOutput = ({ node, output, state, styles }: ListOutputProps) => if (item === null) { return ( - + ); } @@ -338,7 +341,10 @@ export const ListOutput = ({ node, output, state, styles }: ListOutputProps) => return ( - + {output(item, state)} @@ -354,13 +360,13 @@ interface BulletProps extends TextProps { } const Bullet = ({ index, style }: BulletProps) => ( - + {index ? `${index}. ` : '\u2022 '} ); -const ListRow = (props: PropsWithChildren) => ( - {props.children} +const ListRow = ({ children, style }: PropsWithChildren) => ( + {children} ); const ListItem = ({ children, style }: PropsWithChildren) => (