Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rikurauhala committed Apr 17, 2024
1 parent 2968ad3 commit 370b6c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/Info/DetailsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { ReactElement } from 'react';

import Button from '@mui/material/Button';

interface FooterButtonProps {
icon: ReactElement
text: string
url: string
interface DetailsButtonProps {
icon: ReactElement;
text: string;
url: string;
}

const DetailsButton = ({ icon, text, url }: FooterButtonProps): JSX.Element => (
const DetailsButton = ({ icon, text, url }: DetailsButtonProps): JSX.Element => (
<Button
color="primary"
href={url}
Expand Down
3 changes: 1 addition & 2 deletions src/services/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { username } from '../config';

import { RepositoryFull, UserFull } from '../types/types';

const octokit = new Octokit();
const octokit = new Octokit({});

const getLanguages = (languagesUrl: string, setState: (arg0: string[]) => void) => {
const languages = sessionStorage.getItem(`languages${languagesUrl}`);
Expand All @@ -15,7 +15,6 @@ const getLanguages = (languagesUrl: string, setState: (arg0: string[]) => void)

const fetchLanguages = async () => {
try {
const octokit = new Octokit();
const response = await octokit.request(`GET ${languagesUrl}`);
setState(response.data as Array<string>);
sessionStorage.setItem(`languages${languagesUrl}`, JSON.stringify(response.data));
Expand Down

0 comments on commit 370b6c4

Please sign in to comment.