mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 16:06:02 +01:00
@@ -105,6 +105,7 @@ const ContextButton: React.FC<{
|
|||||||
>
|
>
|
||||||
<Group position="apart" w="100%" noWrap>
|
<Group position="apart" w="100%" noWrap>
|
||||||
<Stack className={classes.buttonStack}>
|
<Stack className={classes.buttonStack}>
|
||||||
|
{(button.title || Number.isNaN(+buttonKey)) && (
|
||||||
<Group className={classes.buttonGroup}>
|
<Group className={classes.buttonGroup}>
|
||||||
{button?.icon && (
|
{button?.icon && (
|
||||||
<Stack className={classes.buttonIconContainer}>
|
<Stack className={classes.buttonIconContainer}>
|
||||||
@@ -124,6 +125,7 @@ const ContextButton: React.FC<{
|
|||||||
<ReactMarkdown components={MarkdownComponents}>{button.title || buttonKey}</ReactMarkdown>
|
<ReactMarkdown components={MarkdownComponents}>{button.title || buttonKey}</ReactMarkdown>
|
||||||
</Text>
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
|
)}
|
||||||
{button.description && (
|
{button.description && (
|
||||||
<Text className={classes.description}>
|
<Text className={classes.description}>
|
||||||
<ReactMarkdown components={MarkdownComponents}>{button.description}</ReactMarkdown>
|
<ReactMarkdown components={MarkdownComponents}>{button.description}</ReactMarkdown>
|
||||||
|
|||||||
Reference in New Issue
Block a user