Skip to content

Commit

Permalink
fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jul 16, 2022
1 parent d855157 commit 86bcfa1
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"simple-import-sort/exports": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@next/next/no-img-element": "off",
"react-hooks/exhaustive-deps": "off",
"react/display-name": "off",
Expand Down
1 change: 0 additions & 1 deletion components/3DTokenTemplate/Model.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
// Auto-generated by: https://github.com/pmndrs/gltfjsx

Expand Down
1 change: 0 additions & 1 deletion components/3DTokenTemplate/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { Text3D } from '@react-three/drei';
import React, { useLayoutEffect, useMemo, useRef } from 'react';
Expand Down
1 change: 0 additions & 1 deletion components/3DTokenTemplate/Token.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { OrbitControls } from '@react-three/drei';
import { Canvas } from '@react-three/fiber';
Expand Down
1 change: 1 addition & 0 deletions components/Landing/BuiltWith.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const BuiltWith: React.FC = () => {
</Flex>
</Grid>
</Flex>
{/* @ts-expect-error */}
<Link to="quest-chains" spy={true} smooth={true} duration={800}>
<Image
src="/Landing/Up.svg"
Expand Down
6 changes: 6 additions & 0 deletions components/Landing/MenuLandingDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const MenuLandingDesktop: React.FC = () => (
</ChakraLink>
</NextLink>

{/* @ts-expect-error */}
<Link
activeClass="active"
to="what"
Expand All @@ -23,16 +24,19 @@ export const MenuLandingDesktop: React.FC = () => (
What
</Text>
</Link>
{/* @ts-expect-error */}
<Link activeClass="active" to="who" spy={true} smooth={true} duration={500}>
<Text fontSize={20} ml={3} cursor="pointer" fontFamily="headingLight">
Who
</Text>
</Link>
{/* @ts-expect-error */}
<Link activeClass="active" to="how" spy={true} smooth={true} duration={500}>
<Text fontSize={20} ml={3} cursor="pointer" fontFamily="headingLight">
How
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
to="creators"
Expand All @@ -45,6 +49,7 @@ export const MenuLandingDesktop: React.FC = () => (
Creators
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
to="questers"
Expand All @@ -57,6 +62,7 @@ export const MenuLandingDesktop: React.FC = () => (
Questers
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
to="team"
Expand Down
6 changes: 6 additions & 0 deletions components/Landing/MenuLandingMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const MenuLandingMobile: React.FC = () => {
</ChakraLink>
</NextLink>

{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand All @@ -71,6 +72,7 @@ export const MenuLandingMobile: React.FC = () => {
What
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand All @@ -88,6 +90,7 @@ export const MenuLandingMobile: React.FC = () => {
Who
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand All @@ -105,6 +108,7 @@ export const MenuLandingMobile: React.FC = () => {
How
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand All @@ -123,6 +127,7 @@ export const MenuLandingMobile: React.FC = () => {
Creators
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand All @@ -141,6 +146,7 @@ export const MenuLandingMobile: React.FC = () => {
Questers
</Text>
</Link>
{/* @ts-expect-error */}
<Link
activeClass="active"
onClick={toggleOpen}
Expand Down
1 change: 0 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './ipfs';
export * from './metadata';
export * from './validate';
2 changes: 1 addition & 1 deletion pages/api/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from 'next';

import { uploadMetadata } from '@/lib';
import { uploadMetadata } from '@/lib/ipfs';
import { WEB3_STORAGE_TOKEN } from '@/utils/constants';

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
Expand Down

0 comments on commit 86bcfa1

Please sign in to comment.