Fix Flipper lints #5
Summary: A few more lints. Some already got fixed since the task was created. Reviewed By: timur-valiev Differential Revision: D30782192 fbshipit-source-id: 2d03d24034173d632280035e6ba68f485fbe62f3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c2aa8bcb59
commit
262cd6105b
@@ -103,7 +103,8 @@ export function SandyApp() {
|
||||
|
||||
useEffect(() => {
|
||||
if (fbConfig.warnFBEmployees && isProduction()) {
|
||||
isFBEmployee().then((isEmployee) => {
|
||||
isFBEmployee()
|
||||
.then((isEmployee) => {
|
||||
if (isEmployee) {
|
||||
notification.warning({
|
||||
placement: 'bottomLeft',
|
||||
@@ -121,7 +122,8 @@ export function SandyApp() {
|
||||
duration: null,
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('isEmployee check failed:', e));
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
@@ -186,6 +186,8 @@ function computeEntries(
|
||||
// hide non default devices, unless they have a connected client or plugins
|
||||
canBeDefaultDevice(device) ||
|
||||
device.hasDevicePlugins ||
|
||||
// Deliberate use of Sync.
|
||||
// eslint-disable-next-line node/no-sync
|
||||
clients.some((c) => c.deviceSync === device),
|
||||
)
|
||||
.map((device) => {
|
||||
|
||||
@@ -217,7 +217,8 @@ export function Notification() {
|
||||
activeNotifications.map((noti) => {
|
||||
const client = getClientById(store, noti.client);
|
||||
const device = client
|
||||
? client.deviceSync
|
||||
? // eslint-disable-next-line node/no-sync
|
||||
client.deviceSync
|
||||
: getDeviceById(store, noti.client);
|
||||
const plugin = getPlugin(noti.pluginId);
|
||||
return {
|
||||
@@ -311,6 +312,7 @@ export function openNotification(store: Store, noti: PluginNotificationOrig) {
|
||||
selectPlugin({
|
||||
selectedPlugin: noti.pluginId,
|
||||
selectedApp: noti.client,
|
||||
// eslint-disable-next-line node/no-sync
|
||||
selectedDevice: client.deviceSync,
|
||||
deepLinkPayload: noti.notification.action,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user