Fix Flipper lints #16
Summary: Larger list of fixes. Adding another package to the flipper export is a bit nasty but it unblocks us for now and centralises `remote` access which seems like a win for FAAS. Reviewed By: mweststrate Differential Revision: D30785421 fbshipit-source-id: 931297e8566b5d8a213b69ae87d0cda7648b3ed4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
262cd6105b
commit
47099cfd31
@@ -39,15 +39,6 @@ type DatabaseDetailSidebarProps = {
|
||||
onSave?: ((changes: {[key: string]: string | null}) => void) | undefined;
|
||||
};
|
||||
|
||||
const EditTriggerSection = styled.div({
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-end',
|
||||
width: '100%',
|
||||
paddingTop: '3px',
|
||||
paddingBottom: '3px',
|
||||
paddingRight: '10px',
|
||||
});
|
||||
|
||||
const TableDetailRow = styled.div({
|
||||
borderBottom: `1px solid ${theme.dividerColor}`,
|
||||
padding: 8,
|
||||
|
||||
@@ -468,21 +468,27 @@ export function plugin(client: PluginClient<Events, Methods>) {
|
||||
!previousState.outdatedDatabaseList &&
|
||||
newState.outdatedDatabaseList
|
||||
) {
|
||||
client.send('databaseList', {}).then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
});
|
||||
client
|
||||
.send('databaseList', {})
|
||||
.then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('databaseList request failed:', e));
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
client.onConnect(() => {
|
||||
client.send('databaseList', {}).then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
});
|
||||
client
|
||||
.send('databaseList', {})
|
||||
.then((databases) => {
|
||||
updateDatabases({
|
||||
databases,
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('initial databaseList request failed:', e));
|
||||
const loadedFavoritesJson = localStorage.getItem(
|
||||
FAVORITES_LOCAL_STORAGE_KEY,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user