From e81f61e42d8bd05909b150c7658f6963b14cdcb6 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Thu, 27 Jul 2023 22:15:21 -0400 Subject: [PATCH] npm run lint fix --- src/components/notify.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/notify.js b/src/components/notify.js index 4cca5309d..d6221f4c2 100644 --- a/src/components/notify.js +++ b/src/components/notify.js @@ -5,18 +5,18 @@ AFRAME.registerComponent('notify', { schema: { duration: { type: 'number', default: 2000 }, ripple: { type: 'boolean', default: true }, - position: { - type: 'string', + position: { + type: 'string', default: { // x: left | center | right // y: top | center | bottom x: 'center', y: 'bottom' - } + } }, dismissible: { type: 'boolean', default: false }, - type: {type: 'string', default: 'info'}, - message: {type: 'string', default: ''} + type: { type: 'string', default: 'info' }, + message: { type: 'string', default: '' } }, init: function () { this.notify = new Notyf({ @@ -27,7 +27,7 @@ AFRAME.registerComponent('notify', { icon: false } ], - // Set your global Notyf configuration here + // Set your global Notyf configuration here duration: this.data.duration, ripple: this.data.ripple, position: this.data.position, @@ -53,7 +53,7 @@ AFRAME.registerComponent('notify', { if (newMessage && this.types.includes(messageType)) { this.message(newMessage, messageType); - this.data.message = ''; + this.data.message = ''; } } -}); \ No newline at end of file +});