mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
feat(web): font awesome icon animations
This commit is contained in:
@@ -6,6 +6,7 @@ import { Avatar, createStyles, Group, Stack, Box, Text, keyframes, Sx } from '@m
|
||||
import React from 'react';
|
||||
import type { NotificationProps } from '../../typings';
|
||||
import MarkdownComponents from '../../config/MarkdownComponents';
|
||||
import LibIcon from '../../components/LibIcon';
|
||||
|
||||
const useStyles = createStyles((theme) => ({
|
||||
container: {
|
||||
@@ -173,11 +174,12 @@ const Notifications: React.FC = () => {
|
||||
radius="xl"
|
||||
size={32}
|
||||
>
|
||||
<FontAwesomeIcon icon={data.icon} fixedWidth size="lg" />
|
||||
<LibIcon icon={data.icon} fixedWidth size="lg" />
|
||||
</Avatar>
|
||||
) : (
|
||||
<FontAwesomeIcon
|
||||
<LibIcon
|
||||
icon={data.icon}
|
||||
animation={data.iconAnimation}
|
||||
style={{
|
||||
color: data.iconColor,
|
||||
alignSelf: !data.alignIcon || data.alignIcon === 'center' ? 'center' : 'start',
|
||||
|
||||
Reference in New Issue
Block a user