Skip to content

Commit 9b19023

Browse files
committed
Fix linter
1 parent 0a26e33 commit 9b19023

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

example/exampleApp/src/screens/HomeScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const HomeScreen = () => {
3737
setDeviceUUID(uuid)
3838

3939
// https://developers.mindbox.ru/docs/%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D1%8B-react-natice-sdk#gettoken
40-
MindboxSdk.getTokens((token: string) => {
41-
setToken(token)
40+
MindboxSdk.getTokens((t: string) => {
41+
setToken(t)
4242

4343
// https://developers.mindbox.ru/docs/%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D1%8B-react-natice-sdk#getsdkversion-since-280
4444
MindboxSdk.getSdkVersion((version) => {

src/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,12 @@ class MindboxSdkClass {
439439
* from the last known value, sends an update to the backend.
440440
*
441441
* @param granted current permission status
442-
* @deprecated Use ``refreshNotificationPermissionStatus()`` instead.
442+
* @deprecated Use `refreshNotificationPermissionStatus()` instead.
443443
*/
444444
public updateNotificationPermissionStatus(granted: Boolean) {
445+
// eslint-disable-next-line no-void
446+
void granted
445447
console.warn('updateNotificationPermissionStatus is deprecated. Use refreshNotificationPermissionStatus instead.')
446-
void granted;
447448
return MindboxSdkNative.refreshNotificationPermissionStatus()
448449
}
449450

0 commit comments

Comments
 (0)