Skip to content

Commit

Permalink
format: formatting & linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsalsinghkv committed Aug 5, 2023
1 parent 70c155a commit 7f5fc8f
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export default {
tailwindcss: {},
autoprefixer: {},
},
}
};
1 change: 1 addition & 0 deletions src/components/Issue.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Icon } from '@iconify-icon/react';

import useFetch from '../hooks/use-fetch';
import { convertToK, timeSince } from '../utils/helper';
import Label from './Label';
Expand Down
1 change: 1 addition & 0 deletions src/components/Pagination/PaginationButton.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Icon } from '@iconify-icon/react';

import { TOTAL_SIBLING_BUTTONS } from '../../utils/config';

// https://www.freecodecamp.org/news/build-a-custom-pagination-component-in-react/
Expand Down
1 change: 1 addition & 0 deletions src/components/Pagination/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Icon } from '@iconify-icon/react';

import PaginationButton from './PaginationButton';

const Pagination = ({ totalPages, currentPage, onChange }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Issues.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import useUrl from '../hooks/use-url';
import { Error, Issue, Loader, Pagination } from '../components';
import useFetch from '../hooks/use-fetch';
import { Loader, Issue, Error, Pagination } from '../components';
import useUrl from '../hooks/use-url';
import { getTotalPages } from '../utils/helper';

const Issues = () => {
Expand Down
1 change: 1 addition & 0 deletions src/context/UrlContext.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createContext, useEffect, useState } from 'react';

import { request } from '../api/request';
import { DEFAULT_LANGUAGE } from '../utils/config';

Expand Down
1 change: 1 addition & 0 deletions src/hooks/use-fetch.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';

import { FETCH } from '../utils/helper';

const useFetch = (url) => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/use-url.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useContext } from 'react';

import { UrlContext } from '../context/UrlContext';

export default function useUrl() {
Expand Down
3 changes: 2 additions & 1 deletion src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';

import App from './App.jsx';
import './index.css';
import UseUrlProvider from './context/UrlContext.jsx';
import './index.css';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
Expand Down
6 changes: 3 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
});

0 comments on commit 7f5fc8f

Please sign in to comment.