-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add NFT page poll interval * Minor bug fixes (#36) * Migrate to react-query * Fix nft page crash on reload * Fix nft page price flickering * Fix rebid * Fix start sale/auction redudant approval * Fix mint button display on large collections with user mint limit * Refactor minted nfts count query * Fix total nft count update on mint * Fix list offset duplicates
- Loading branch information
1 parent
88b9c1e
commit 261cf2b
Showing
30 changed files
with
291 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { withAccount } from './with-account'; | ||
import { withApi } from './with-api'; | ||
import { withMarketplaceConfig } from './with-marketplace-config'; | ||
|
||
export { withAccount, withApi }; | ||
export { withAccount, withApi, withMarketplaceConfig }; |
3 changes: 3 additions & 0 deletions
3
frontend/src/components/hocs/with-marketplace-config/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { withMarketplaceConfig } from './with-marketplace-config'; | ||
|
||
export { withMarketplaceConfig }; |
15 changes: 15 additions & 0 deletions
15
frontend/src/components/hocs/with-marketplace-config/with-marketplace-config.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { FunctionComponent } from 'react'; | ||
|
||
import { useMarketplace } from '@/context'; | ||
|
||
// alongside with withApi, probably would be better to check loading inside of components where hook is used | ||
// and render loading status directly there | ||
function withMarketplaceConfig<T>(Component: FunctionComponent<T>) { | ||
return function WithApi(props: T & JSX.IntrinsicAttributes) { | ||
const { marketplace } = useMarketplace(); | ||
|
||
return marketplace ? <Component {...props} /> : null; | ||
}; | ||
} | ||
|
||
export { withMarketplaceConfig }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.