mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,2 +1,2 @@
|
||||
export * from './notifications'
|
||||
export * from './notifications.store'
|
||||
export * from './notifications';
|
||||
export * from './notifications.store';
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { action, observable } from "mobx"
|
||||
import { action, observable } from "mobx";
|
||||
import { autobind } from "../../utils";
|
||||
import isObject from "lodash/isObject"
|
||||
import isObject from "lodash/isObject";
|
||||
import uniqueId from "lodash/uniqueId";
|
||||
import { JsonApiErrorParsed } from "../../api/json-api";
|
||||
|
||||
@@ -50,7 +50,7 @@ export class NotificationsStore {
|
||||
notification.id = uniqueId("notification_");
|
||||
}
|
||||
const index = this.notifications.findIndex(item => item.id === notification.id);
|
||||
if (index > -1) this.notifications.splice(index, 1, notification)
|
||||
if (index > -1) this.notifications.splice(index, 1, notification);
|
||||
else this.notifications.push(notification);
|
||||
this.addAutoHideTimer(notification);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import './notifications.scss';
|
||||
|
||||
import React from 'react'
|
||||
import React from 'react';
|
||||
import { reaction } from "mobx";
|
||||
import { disposeOnUnmount, observer } from "mobx-react"
|
||||
import { disposeOnUnmount, observer } from "mobx-react";
|
||||
import { JsonApiErrorParsed } from "../../api/json-api";
|
||||
import { cssNames, prevDefault } from "../../utils";
|
||||
import { NotificationMessage, Notification, notificationsStore, NotificationStatus } from "./notifications.store";
|
||||
import { Animate } from "../animate";
|
||||
import { Icon } from "../icon"
|
||||
import { Icon } from "../icon";
|
||||
|
||||
@observer
|
||||
export class Notifications extends React.Component {
|
||||
@@ -18,7 +18,7 @@ export class Notifications extends React.Component {
|
||||
message: message,
|
||||
timeout: 2500,
|
||||
status: NotificationStatus.OK
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
static error(message: NotificationMessage) {
|
||||
@@ -53,7 +53,7 @@ export class Notifications extends React.Component {
|
||||
this.elem.scrollTo({
|
||||
top: this.elem.scrollHeight,
|
||||
behavior: "smooth"
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
getMessage(notification: Notification) {
|
||||
@@ -89,9 +89,9 @@ export class Notifications extends React.Component {
|
||||
</div>
|
||||
</div>
|
||||
</Animate>
|
||||
)
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user