Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRoller committed Mar 7, 2025
1 parent e44e862 commit bf9f76b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AuthenticateMessage, AuthenticateResponseMessage, ZAppMessageType, ZOSMessageType } from '../types/types';
import { AuthenticateMessage, AuthenticateResponseMessage, ZOSMessageType } from '../types/types';
import { WHITELISTED_APPS } from '../constants/whitelistedApps';
import { get } from '../../../lib/api/rest';

/**
* Give the app access to the user's access token. This is only allowed for whitelisted apps.
Expand Down
6 changes: 4 additions & 2 deletions src/apps/external-app/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enum ZAppMessageType {

enum ZOSMessageType {
ManifestReceived = 'zos-manifest-received',
Authenticate = 'zos-authenticate',
}

type RouteChangeMessage = {
Expand Down Expand Up @@ -35,8 +36,9 @@ type ManifestResponseMessage = {
};

type AuthenticateResponseMessage = {
type: ZAppMessageType.Authenticate;
token: string;
type: ZOSMessageType.Authenticate;
token: string | null;
error?: string;
};

type OutgoingMessage = ManifestResponseMessage | AuthenticateResponseMessage;
Expand Down
2 changes: 1 addition & 1 deletion src/store/active-zapp/selectors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RootState } from '../reducer';
import { createSelector } from 'reselect';
import { ZAppFeature, ZAppFeatureType, ExtractFeatureType } from '../../apps/external-app/types/features';
import { ZAppFeatureType, ExtractFeatureType } from '../../apps/external-app/types/features';

export const rawActiveZAppManifest = (state: RootState) => state.activeZApp.manifest;

Expand Down

0 comments on commit bf9f76b

Please sign in to comment.