Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
Signed-off-by: wblx <904653630@qq.com>
  • Loading branch information
wblxxx committed Jul 30, 2024
1 parent 7c55b94 commit 732a649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/api/githubApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ export const githubRequest = async (endpoint: string, options: RequestInit = {})
};

export { saveToken, getToken };


9 changes: 4 additions & 5 deletions src/helpers/github-token.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
export const saveToken = (token: string) => {
localStorage.setItem('github_token', token);
};
localStorage.setItem('github_token', token);
};

export const getToken = (): string => {
return localStorage.getItem('github_token') || '';
return localStorage.getItem('github_token') || '';
};

4 changes: 0 additions & 4 deletions src/pages/Options/components/GitHubToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,3 @@ const GitHubToken = () => {
};

export default GitHubToken;




0 comments on commit 732a649

Please sign in to comment.