mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(web): notify and context markdown wrapper (#174)
Co-authored-by: davidxd33 <dponce@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { useToast, type ToastPosition, Box, HStack, Text } from '@chakra-ui/reac
|
||||
import { useNuiEvent } from '../../hooks/useNuiEvent';
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
|
||||
export interface NotificationProps {
|
||||
title?: string;
|
||||
@@ -53,7 +54,7 @@ const Notifications: React.FC = () => {
|
||||
)}
|
||||
<Box w="100%">
|
||||
{data.title && <Text as="b">{data.title}</Text>}
|
||||
{data.description && <Text>{data.description}</Text>}
|
||||
{data.description && <Text><ReactMarkdown>{data.description}</ReactMarkdown></Text>}
|
||||
</Box>
|
||||
</HStack>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user