|
1 | 1 | import { markRaw as raw, type SVGAttributes } from 'vue'
|
2 | 2 |
|
3 |
| -import { NotificationTypeKeys as NKeys } from '@/core/constants' |
| 3 | +import { NotificationTypeKeys as NType } from '@/core/constants' |
4 | 4 |
|
5 | 5 | import SuccessIcon from './SuccessIcon.vue'
|
6 | 6 | import ErrorIcon from './ErrorIcon.vue'
|
@@ -34,23 +34,23 @@ export const featherProps: SVGAttributes = {
|
34 | 34 | }
|
35 | 35 |
|
36 | 36 | export const filledIcons: NotivueIcons = {
|
37 |
| - [NKeys.SUCCESS]: raw(SuccessIcon), |
38 |
| - [NKeys.ERROR]: raw(ErrorIcon), |
39 |
| - [NKeys.INFO]: raw(InfoIcon), |
40 |
| - [NKeys.WARNING]: raw(ErrorIcon), |
41 |
| - [NKeys.PROMISE]: raw(PromiseIcon), |
42 |
| - [NKeys.PROMISE_RESOLVE]: raw(SuccessIcon), |
43 |
| - [NKeys.PROMISE_REJECT]: raw(ErrorIcon), |
| 37 | + [NType.SUCCESS]: raw(SuccessIcon), |
| 38 | + [NType.ERROR]: raw(ErrorIcon), |
| 39 | + [NType.INFO]: raw(InfoIcon), |
| 40 | + [NType.WARNING]: raw(ErrorIcon), |
| 41 | + [NType.PROMISE]: raw(PromiseIcon), |
| 42 | + [NType.PROMISE_RESOLVE]: raw(SuccessIcon), |
| 43 | + [NType.PROMISE_REJECT]: raw(ErrorIcon), |
44 | 44 | close: raw(CloseIcon),
|
45 | 45 | }
|
46 | 46 |
|
47 | 47 | export const outlinedIcons: NotivueIcons = {
|
48 |
| - [NKeys.SUCCESS]: raw(SuccessOutlineIcon), |
49 |
| - [NKeys.ERROR]: raw(ErrorOutlineIcon), |
50 |
| - [NKeys.INFO]: raw(InfoOutlineIcon), |
51 |
| - [NKeys.WARNING]: raw(ErrorOutlineIcon), |
52 |
| - [NKeys.PROMISE]: raw(PromiseIcon), |
53 |
| - [NKeys.PROMISE_RESOLVE]: raw(SuccessOutlineIcon), |
54 |
| - [NKeys.PROMISE_REJECT]: raw(ErrorOutlineIcon), |
| 48 | + [NType.SUCCESS]: raw(SuccessOutlineIcon), |
| 49 | + [NType.ERROR]: raw(ErrorOutlineIcon), |
| 50 | + [NType.INFO]: raw(InfoOutlineIcon), |
| 51 | + [NType.WARNING]: raw(ErrorOutlineIcon), |
| 52 | + [NType.PROMISE]: raw(PromiseIcon), |
| 53 | + [NType.PROMISE_RESOLVE]: raw(SuccessOutlineIcon), |
| 54 | + [NType.PROMISE_REJECT]: raw(ErrorOutlineIcon), |
55 | 55 | close: raw(CloseIcon),
|
56 | 56 | }
|
0 commit comments