Remove dynamic import of Tabler icons
This commit is contained in:
parent
cda823f33f
commit
72acda8c5d
|
@ -39,10 +39,10 @@ const buildLink = (account) => (
|
||||||
export const NOTIFICATION_TYPES = ['follow', 'mention', 'favourite', 'reblog'];
|
export const NOTIFICATION_TYPES = ['follow', 'mention', 'favourite', 'reblog'];
|
||||||
|
|
||||||
const icons = {
|
const icons = {
|
||||||
follow: 'user-plus',
|
follow: require('@tabler/icons/icons/user-plus.svg'),
|
||||||
mention: 'at',
|
mention: require('@tabler/icons/icons/at.svg'),
|
||||||
favourite: 'heart',
|
favourite: require('@tabler/icons/icons/heart.svg'),
|
||||||
reblog: 'repeat',
|
reblog: require('@tabler/icons/icons/repeat.svg'),
|
||||||
};
|
};
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
|
@ -199,7 +199,7 @@ const Notification = (props) => {
|
||||||
<div className='mb-2'>
|
<div className='mb-2'>
|
||||||
<HStack alignItems='center' space={1.5}>
|
<HStack alignItems='center' space={1.5}>
|
||||||
<Icon
|
<Icon
|
||||||
src={require(`@tabler/icons/icons/${icons[type]}.svg`)}
|
src={icons[type]}
|
||||||
className='text-primary-600'
|
className='text-primary-600'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue