Skip to content

Commit

Permalink
fix: Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Mar 8, 2024
1 parent 29c54d2 commit ade19be
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react'
import { Link, useHistory, useLocation } from 'react-router-dom'
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
import { Bid, BidSortBy, Item, ListingStatus, Network, Order, OrderFilters, OrderSortBy, Rarity } from '@dcl/schemas'
import { Bid, BidSortBy, ListingStatus, Network, Order, OrderFilters, OrderSortBy, Rarity } from '@dcl/schemas'
import { Button, Popup } from 'decentraland-ui'
import { getExpirationDateLabel } from '../../../lib/date'
import { locations } from '../../../modules/routing/locations'
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Menu/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DropdownMenu = <T extends unknown>(props: Props<T>) => {
className={classNames({ open: isDropdownOpen })}
/>
<ul className="submenu">
{values.includes(currentValue) && isDropdownOpen
{currentValue && values.includes(currentValue) && isDropdownOpen
? values
.slice(1)
.map((value, index) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { connect } from 'react-redux'
import { Item } from '@dcl/schemas'
import { isLoadingType } from 'decentraland-dapps/dist/modules/loading/selectors'
import { Authorization } from 'decentraland-dapps/dist/modules/authorization/types'
import { fetchAuthorizationsRequest, revokeTokenRequest } from 'decentraland-dapps/dist/modules/authorization/actions'
Expand Down
1 change: 0 additions & 1 deletion webapp/src/components/Price/Price.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { MapStateProps, OwnProps } from './Price.types'
import Price from './Price'
import { RootState } from '../../modules/reducer'
import { getCurrentOrder } from '../../modules/order/selectors'
import { Item } from '@dcl/schemas'

const mapState = (state: RootState, { asset }: OwnProps): MapStateProps => {
let price: string | undefined
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/utils/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { RootState } from '../modules/reducer'
import { initTestStore } from '../modules/store'
import * as locales from '../modules/translation/locales'

const allTranslations = mergeTranslations(flatten(en), flatten(locales.en))
const allTranslations = mergeTranslations(flatten(en), flatten(locales.en) as any)

export function renderWithProviders(
component: JSX.Element,
Expand Down
1 change: 0 additions & 1 deletion webapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"types": ["vite/client", "jest", "node"],
},
"include": ["src", ".eslintrc.js", "vite.config.ts", "jest.config.ts", ".eslintrc.cjs"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down

0 comments on commit ade19be

Please sign in to comment.