Skip to content

Commit

Permalink
fix: move lib, types, api, and components outside of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
heybereket committed Jan 13, 2022
1 parent 750b4a2 commit 1fc8867
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions pages/index.tsx
@@ -1,12 +1,12 @@
import axios from 'axios';
import type { GetStaticProps } from 'next';
import { Key, SetStateAction, useEffect, useState } from 'react';
import { fetcher } from './lib/fetcher';
import { Tool } from './types/Tool';
import { Header } from './components/Header';
import { Card } from './components/Card';
import { fetcher } from '../lib/fetcher';
import { Tool } from '../types/Tool';
import { Header } from '../components/Header';
import { Card } from '../components/Card';
import Link from 'next/link';
import { CATEGORIES } from './lib/constants';
import { CATEGORIES } from '../lib/constants';

interface HomeProps {
tools: any;
Expand Down
6 changes: 3 additions & 3 deletions pages/submit.tsx
@@ -1,8 +1,8 @@
import axios from 'axios';
import { useState } from 'react';
import { Header } from './components/Header';
import { Footer } from './components/Footer';
import { CATEGORIES } from './lib/constants';
import { Header } from '../components/Header';
import { Footer } from '../components/Footer';
import { CATEGORIES } from '../lib/constants';

const Tool = () => {
const [toolName, setToolName] = useState('');
Expand Down
File renamed without changes.

0 comments on commit 1fc8867

Please sign in to comment.