Skip to content

Commit d6f65d5

Browse files
committed
fix: 🐛 build
the config probably need a bit of cleaning at some point. There is a misconfiguration between ts, vite and eslint
1 parent bc588e9 commit d6f65d5

File tree

9 files changed

+48
-12
lines changed

9 files changed

+48
-12
lines changed

src/atoms/input/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styles from '@style'
33
import classNames from 'classnames'
44
import React, { useCallback } from 'react'
55

6-
import './types'
6+
import './types.d.ts'
77

88
const Checkbox = (
99
{

src/context/mintStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
import type { FileForm } from '@types'
2424
import { prepareFilesFromZIP } from '@utils/html'
2525
import { prepareDirectory, prepareFile } from '@data/ipfs'
26-
import '@atoms/select/types'
26+
import '@atoms/select/types.d.ts'
2727

2828
interface MintState {
2929
title?: string

src/pages/home/feeds/fund-feed.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ function FundFeed({
1313
contractAddress,
1414
cause,
1515
namepsace,
16-
tags = null,
16+
tags,
17+
}: {
18+
minShares?: number
19+
introText: string
20+
infoUrl: string
21+
contractAddress: string
22+
cause: string
23+
namepsace: string
24+
tags?: string[]
1725
}) {
1826
return (
1927
<>

src/pages/home/feeds/mime-type-feed.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@ import uniqBy from 'lodash/uniqBy'
33
import { BaseTokenFieldsFragment } from '@data/queries'
44
import { HEN_CONTRACT_FA2 } from '@constants'
55
import TokenCollection from '@atoms/token-collection'
6+
import type { Token_Metadata } from 'gql'
67

7-
function MimeTypeFeed({ label, namespace, mimeTypes }) {
8+
function MimeTypeFeed({
9+
label,
10+
namespace,
11+
mimeTypes,
12+
}: {
13+
label: string
14+
namespace: string
15+
mimeTypes: string[]
16+
}) {
817
return (
918
<TokenCollection
1019
feeds_menu
1120
label={label}
1221
namespace={namespace}
1322
maxItems={600}
14-
postProcessTokens={(tokens) => uniqBy(tokens, 'artist_address')}
23+
postProcessTokens={(tokens: Token_Metadata[]) =>
24+
uniqBy(tokens, 'artist_address')
25+
}
1526
query={gql`
1627
${BaseTokenFieldsFragment}
1728
query getTokensByMimeTypes($limit: Int!) {
1829
tokens(where: { mime_type: {_in : [${mimeTypes
19-
.map((mimeType) => `"${mimeType}"`)
30+
.map((mimeType: string) => `"${mimeType}"`)
2031
.join(
2132
', '
2233
)}] }, editions : { _neq : 0 }, metadata_status: { _eq: "processed" }, fa2_address: { _eq: "${HEN_CONTRACT_FA2}"}}, order_by: { minted_at: desc }, limit: $limit) {

src/pages/home/feeds/new-objkts-feed.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import uniqBy from 'lodash/uniqBy'
33
import { BaseTokenFieldsFragment } from '@data/queries'
44
import { HEN_CONTRACT_FA2 } from '@constants'
55
import TokenCollection from '@atoms/token-collection'
6+
import type { Token_Metadata } from 'gql'
67

78
export function NewObjktsFeed() {
89
return (
@@ -11,7 +12,9 @@ export function NewObjktsFeed() {
1112
label="New OBJKTs"
1213
namespace="new-objkts-feed"
1314
maxItems={600}
14-
postProcessTokens={(tokens) => uniqBy(tokens, 'artist_address')}
15+
postProcessTokens={(tokens: Token_Metadata[]) =>
16+
uniqBy(tokens, 'artist_address')
17+
}
1518
query={gql`
1619
${BaseTokenFieldsFragment}
1720
query getNewObjkt($limit: Int!) {

src/pages/home/feeds/one-one-feed.jsx renamed to src/pages/home/feeds/one-one-feed.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { gql } from 'graphql-request'
22
import uniqBy from 'lodash/uniqBy'
3-
import { BaseTokenFieldsFragment } from '@data/api'
3+
44
import { HEN_CONTRACT_FA2 } from '@constants'
55
import TokenCollection from '@atoms/token-collection'
6+
import { BaseTokenFieldsFragment } from '@data/queries'
7+
import type { Token_Metadata } from 'gql'
68

79
export function OneOnOneFeed() {
810
return (
@@ -11,7 +13,9 @@ export function OneOnOneFeed() {
1113
label="1/1 OBJKTs"
1214
namespace="one-on-one-feed"
1315
maxItems={600}
14-
postProcessTokens={(tokens) => uniqBy(tokens, 'artist_address')}
16+
postProcessTokens={(tokens: Token_Metadata[]) =>
17+
uniqBy(tokens, 'artist_address')
18+
}
1519
query={gql`
1620
${BaseTokenFieldsFragment}
1721
query getUnoUno($limit: Int!) {

src/pages/home/feeds/recent-sales-feed.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import uniqBy from 'lodash/uniqBy'
33
import TokenCollection from '@atoms/token-collection'
44
import { BaseTokenFieldsFragment } from '@data/queries'
55
import { HEN_CONTRACT_FA2 } from '@constants'
6+
import type { Token_Metadata } from 'gql'
67

78
export function RecentSalesFeed() {
89
return (
@@ -14,7 +15,7 @@ export function RecentSalesFeed() {
1415
tokenPath="token"
1516
keyPath="token.token_id"
1617
maxItems={600}
17-
postProcessTokens={(tokens) =>
18+
postProcessTokens={(tokens: Token_Metadata[]) =>
1819
uniqBy(uniqBy(tokens, 'token_id'), 'artist_address')
1920
}
2021
query={gql`

src/pages/home/feeds/search-feed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function SearchFeed() {
77

88
return (
99
<TagFeed
10-
feeds_menu={false}
1110
label="Search"
11+
feeds_menu={false}
1212
namespace="search-feed"
1313
tag={searchTerm}
1414
/>

src/pages/home/feeds/tag-feed.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import TokenCollection from '@atoms/token-collection'
33
import { BaseTokenFieldsFragment } from '@data/queries'
44
import { HEN_CONTRACT_FA2 } from '@constants'
55

6-
export function TagFeed({ tag, ...otherProps }) {
6+
export function TagFeed({
7+
tag,
8+
...otherProps
9+
}: {
10+
tag: string
11+
label?: string
12+
feeds_menu?: boolean
13+
namespace?: string
14+
[key: string]: unknown
15+
}) {
716
return (
817
<TokenCollection
918
feeds_menu

0 commit comments

Comments
 (0)