Skip to content

Commit

Permalink
Run prettier to fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jennantilla committed Jan 11, 2024
1 parent 388c6b5 commit 9e32b78
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
8 changes: 4 additions & 4 deletions examples/RNOneSignalTS/src/OSButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class OSButtons extends React.Component<Props> {
});

const getTagsButton = renderButtonView('Get tags', async () => {
const tags = await OneSignal.User.getTags();
loggingFunction('Tags:', tags);
const tags = await OneSignal.User.getTags();
loggingFunction('Tags:', tags);
});

const setLanguageButton = renderButtonView('Set Language', () => {
Expand Down Expand Up @@ -357,7 +357,7 @@ class OSButtons extends React.Component<Props> {
loggingFunction('External Id:', externalId);
},
);

return [
loginButton,
logoutButton,
Expand All @@ -376,7 +376,7 @@ class OSButtons extends React.Component<Props> {
addAliasesButton,
removeAliasesButton,
getOnesignalIdButton,
getExternalIdButton
getExternalIdButton,
];
}

Expand Down
2 changes: 1 addition & 1 deletion examples/RNOneSignalTS/src/OSDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class OSDemo extends React.Component<Props, State> {

OneSignal.User.addEventListener('change', (event) => {
this.OSLog('OneSignal: user changed: ', event);
})
});
}

OSLog = (message: string, optionalArg: any = null) => {
Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ import {
OSNotificationPermission,
PushSubscriptionChangedState,
} from './models/Subscription';
import {
UserState,
UserChangedState,
} from './models/User';
import { UserState, UserChangedState } from './models/User';
import NotificationWillDisplayEvent from './events/NotificationWillDisplayEvent';
import {
InAppMessage,
Expand Down
12 changes: 6 additions & 6 deletions src/models/User.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export interface UserState {
externalId: string;
onesignalId: string;
externalId: string;
onesignalId: string;
}

export interface UserChangedState {
previous: UserState;
current: UserState;
}
previous: UserState;
current: UserState;
}

0 comments on commit 9e32b78

Please sign in to comment.