Skip to content

Commit

Permalink
refactor: move fursona type to global declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaTheFolf committed Jun 24, 2022
1 parent 30900c7 commit 9bd9786
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/utils/types.ts → @types/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Fursona {
declare interface Fursona {
avatar: string
name: string
species: string
Expand Down
1 change: 1 addition & 0 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="./app.d.ts" />
5 changes: 1 addition & 4 deletions src/components/ArtCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import GalleryItem, { LoadingGalleryItem } from "./GalleryItem"
import styles from "@/styles/Carousel.module.scss"
import { Fursona } from "@/utils/types"
import { useRef } from "react"

interface IArtCarouselProps {
Expand All @@ -9,8 +8,6 @@ interface IArtCarouselProps {
}

const Carousel = ({ title, images = [] }: IArtCarouselProps) => {
return(
<div>wip</div>
)
return <div>wip</div>
}
export default Carousel
1 change: 0 additions & 1 deletion src/components/CardCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useRef } from "react"
import GalleryItem, { LoadingGalleryItem } from "./GalleryItem"
import styles from "@/styles/Carousel.module.scss"
import { Fursona } from "@/utils/types"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faAngleLeft, faAngleRight } from "@fortawesome/free-solid-svg-icons"

Expand Down
1 change: 0 additions & 1 deletion src/components/CarouselMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useRef } from "react"
import GalleryItem, { LoadingGalleryItem } from "./GalleryItem"
import styles from "../styles/Carousel.module.scss"
import { Fursona } from "@/utils/types"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faAngleLeft, faAngleRight } from "@fortawesome/free-solid-svg-icons"

Expand Down
4 changes: 2 additions & 2 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Head from "next/head"
import Header from "./Header"
import Footer from "./Footer"
// import Footer from "./Footer"

export default function Layout({ children }) {
return (
Expand All @@ -16,7 +16,7 @@ export default function Layout({ children }) {
<div>
<Header />
{children}
<Footer />
{/* <Footer /> */}
</div>
</>
)
Expand Down
5 changes: 1 addition & 4 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Container from "@/components/Container"
import styles from "@/styles/Home.module.scss"
import UnderConstruction from "@/components/UnderConstruction"
import Carousel from "@/components/CarouselMenu"
import { Fursona } from "@/utils/types"

export default function Home() {
const [data, setData] = useState<Fursona[]>([])
Expand Down Expand Up @@ -33,9 +32,7 @@ export default function Home() {
<main>
<div id={styles["header-hero"]}>
<article>
<h1>
Manage, store, and show your fursonas in one place
</h1>
<h1>Manage, store, and show your fursonas in one place</h1>
<p>
<strong>MyFursona</strong> is an open-source platform where you
can show off your fluffy characters and show them off to your
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"isolatedModules": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"jsx": "preserve"
"jsx": "preserve",
"typeRoots": ["./@types"]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 9bd9786

Please sign in to comment.