Skip to content

Commit

Permalink
Some more lint fiuxps.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Nov 18, 2024
1 parent f3aef7c commit f14a3d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libs/react-client/src/types/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export interface IFileElement extends TMessageElement<'file'> {
type: 'file';
}

export interface IPlotlyElement extends TMessageElement<'plotly'> {}
export type IPlotlyElement = TMessageElement<'plotly'>;

export interface ITasklistElement extends TElement<'tasklist'> {}
export type ITasklistElement = TElement<'tasklist'>;

export interface IDataframeElement extends TMessageElement<'dataframe'> {}
export type IDataframeElement = TMessageElement<'dataframe'>;
6 changes: 3 additions & 3 deletions libs/react-client/src/utils/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ const tokenKey = 'token';
export function getToken() {
try {
return localStorage.getItem(tokenKey);
} catch (e) {
} catch (_) {
return;
}
}

export function setToken(token: string) {
try {
return localStorage.setItem(tokenKey, token);
} catch (e) {
} catch (_) {
return;
}
}

export function removeToken() {
try {
return localStorage.removeItem(tokenKey);
} catch (e) {
} catch (_) {
return;
}
}

0 comments on commit f14a3d2

Please sign in to comment.