File tree Expand file tree Collapse file tree
common/marketplace-with-network-logo
marketplaces/marketplace-list-item
network/settings/logo-and-colors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import {truncateAddress} from "helpers/truncate-address";
99import { User } from "interfaces/api" ;
1010import { SizeOptions } from "interfaces/utils" ;
1111
12- import { baseApiImgUrl } from "../services/api" ;
13-
1412export interface AvatarOrIdenticonProps {
1513 user : User | { address : string ; handle ?: string ; avatar ?: string ; } ;
1614 size ?: SizeOptions | number ;
@@ -50,7 +48,7 @@ export default function AvatarOrIdenticon({
5048 < Avatar
5149 userLogin = { handle }
5250 size = { size }
53- src = { `${ baseApiImgUrl } / ${ publicRuntimeConfig ?. urls ?. ipfs } /${ avatar } ?width=100&height=100` }
51+ src = { `${ publicRuntimeConfig ?. urls ?. ipfs } /${ avatar } ?width=100&height=100` }
5452 className = "border-primary"
5553 />
5654 </ If >
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ import useReactQuery from "x-hooks/use-react-query";
2323import { useSettings } from "x-hooks/use-settings" ;
2424import useSupportedChain from "x-hooks/use-supported-chain" ;
2525
26- import { baseApiImgUrl } from "../../services/api" ;
27-
2826interface SelectNetworkProps {
2927 isCurrentDefault ?: boolean ;
3028 onlyProfileFilters ?: boolean ;
@@ -70,7 +68,7 @@ export default function SelectNetwork({
7068 value : network ,
7169 preIcon : (
7270 < NetworkLogo
73- src = { `${ baseApiImgUrl } / ${ settings ?. urls ?. ipfs } /${ network ?. logoIcon } ` }
71+ src = { `${ settings ?. urls ?. ipfs } /${ network ?. logoIcon } ` }
7472 alt = { `${ network ?. name } logo` }
7573 isBepro = { network ?. name . toLowerCase ( ) === 'bepro' }
7674 size = "sm"
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import {Network} from "interfaces/network";
1010
1111import { useSettings } from "x-hooks/use-settings" ;
1212
13- import { baseApiImgUrl } from "../../../services/api" ;
14-
1513interface SelectNetworkDropdownProps {
1614 value ?: Network ;
1715 onSelect : ( network : Network ) => void ;
@@ -51,7 +49,7 @@ export default function CreateBountyNetworkDropdown({
5149 label : network ?. name ,
5250 preIcon : (
5351 < img
54- src = { `${ baseApiImgUrl } / ${ settings ?. urls ?. ipfs } /${ network ?. logoIcon } ?width=16&height=16` }
52+ src = { `${ settings ?. urls ?. ipfs } /${ network ?. logoIcon } ?width=16&height=16` }
5553 alt = { `${ network ?. name } logo` }
5654 width = { 16 }
5755 height = { 16 }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import getConfig from "next/config";
44
55import QuestionMarkIcon from "assets/icons/question-mark-icon" ;
66
7- import { baseApiImgUrl } from "../services/api" ;
87import If from "./If" ;
98import ResponsiveWrapper from "./responsive-wrapper" ;
109
@@ -32,7 +31,7 @@ export default function ChainIcon({
3231 const chainIcon = src && ipfsUrl ?
3332 < img
3433 className = { `rounded-circle ${ className } ` }
35- src = { `${ baseApiImgUrl } / ${ ipfsUrl } /${ src } ?width=${ size } &height=${ size } ${ imgFormat ? `&format=${ imgFormat } ` : "" } ` }
34+ src = { `${ ipfsUrl } /${ src } ?width=${ size } &height=${ size } ${ imgFormat ? `&format=${ imgFormat } ` : "" } ` }
3635 height = { size }
3736 width = { size }
3837 /> :
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import getConfig from "next/config";
33import ChainIcon from "components/chain-icon" ;
44import NetworkLogo from "components/network-logo" ;
55
6- import { baseApiImgUrl } from "../../../services/api" ;
7-
86const { publicRuntimeConfig} = getConfig ( ) ;
97interface MarketplaceWithNetworkLogoProps {
108 networkLogo : string ;
@@ -17,7 +15,7 @@ export default function MarketplaceWithNetworkLogo ({
1715 return (
1816 < div className = "position-relative" >
1917 < NetworkLogo
20- src = { `${ baseApiImgUrl } / ${ publicRuntimeConfig ?. urls ?. ipfs } /${ marketplaceLogo } ` }
18+ src = { `${ publicRuntimeConfig ?. urls ?. ipfs } /${ marketplaceLogo } ` }
2119 shape = "square"
2220 size = "lg"
2321 noBg
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import {SelectOption} from "types/utils";
1414import useBreakPoint from "x-hooks/use-breakpoint" ;
1515import useQueryFilter from "x-hooks/use-query-filter" ;
1616
17- import { baseApiImgUrl } from "../../../../services/api" ;
18-
1917const { publicRuntimeConfig } = getConfig ( ) ;
2018export default function MarketplaceFilter ( {
2119 marketplaces,
@@ -36,7 +34,7 @@ export default function MarketplaceFilter({
3634 value : marketplace ?. name ,
3735 label : marketplace ?. name ,
3836 preIcon : < NetworkLogo
39- src = { `${ baseApiImgUrl } / ${ publicRuntimeConfig ?. urls ?. ipfs } /${ marketplace ?. logoIcon } ` }
37+ src = { `${ publicRuntimeConfig ?. urls ?. ipfs } /${ marketplace ?. logoIcon } ` }
4038 alt = { `${ marketplace ?. name } logo` }
4139 size = "sm"
4240 noBg
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import {formatNumberToNScale} from "helpers/formatNumber";
1111
1212import { useSettings } from "x-hooks/use-settings" ;
1313
14- import { baseApiImgUrl } from "../../../../services/api" ;
15-
1614type MarketplaceListItemProps = {
1715 marketplace : GroupedMarketplace
1816} ;
@@ -79,7 +77,7 @@ export function MarketplaceListItem({
7977 < ResponsiveListItem
8078 icon = {
8179 < NetworkLogo
82- src = { `${ baseApiImgUrl } / ${ settings ?. urls ?. ipfs } /${ marketplace ?. logoIcon } ?format=svg` }
80+ src = { `${ settings ?. urls ?. ipfs } /${ marketplace ?. logoIcon } ?format=svg` }
8381 shape = "square"
8482 size = "lg"
8583 noBg
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { IssueData } from "interfaces/issue-data";
44
55import { useSettings } from "x-hooks/use-settings" ;
66
7- import { baseApiImgUrl } from "../../../../services/api" ;
8-
97interface NftsListItemProps {
108 nft : IssueData
119}
@@ -17,7 +15,7 @@ export default function NftsListItem ({
1715
1816 const transactionHash = nft ?. payments ?. at ( 0 ) ?. transactionHash ;
1917 const imageUrl =
20- nft ?. nftImage ? `${ baseApiImgUrl } / ${ settings ?. urls ?. ipfs } /${ nft ?. nftImage } ` : null ;
18+ nft ?. nftImage ? `${ settings ?. urls ?. ipfs } /${ nft ?. nftImage } ` : null ;
2119 const transactionUrl = `${ nft ?. network ?. chain ?. blockScanner } /${ transactionHash } ` ;
2220 const taskUrl = `/${ nft ?. network ?. name ?. toLowerCase ( ) } /task/${ nft ?. id } ` ;
2321
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import useMarketplace from "x-hooks/use-marketplace";
99import { useSettings } from "x-hooks/use-settings" ;
1010import useSupportedChain from "x-hooks/use-supported-chain" ;
1111
12- import { baseApiImgUrl } from "../../../services/api" ;
1312import { userPointsOfUser } from "../../../x-hooks/use-points-of-user" ;
1413
1514export default function NavBar ( ) {
@@ -21,7 +20,7 @@ export default function NavBar() {
2120 const { active : activeMarketplace , getURLWithNetwork } = useMarketplace ( ) ;
2221
2322 const isOnNetwork = pathname ?. includes ( "[network]" ) ;
24- const logoPath = baseApiImgUrl . concat ( "/" , settings ?. urls ?. ipfs ) ;
23+ const logoPath = settings ?. urls ?. ipfs ;
2524 const logos = {
2625 fullLogo : activeMarketplace ?. fullLogo && `${ logoPath } /${ activeMarketplace . fullLogo } ` ,
2726 logoIcon : activeMarketplace ?. logoIcon && `${ logoPath } /${ activeMarketplace . logoIcon } `
Original file line number Diff line number Diff line change @@ -16,16 +16,14 @@ import {useUserStore} from "x-hooks/stores/user/user.store";
1616import useNetworkTheme from "x-hooks/use-network-theme" ;
1717import useReactQueryMutation from "x-hooks/use-react-query-mutation" ;
1818
19- import { baseApiImgUrl } from "../../../../services/api" ;
20-
2119
2220const { publicRuntimeConfig } = getConfig ( ) ;
2321
2422const MAX_LOGOS_SIZE_LIMIT_IN_MB = 1 ;
2523
2624const getDefaultIconValue = ( hash : string ) => ( {
2725 value : {
28- preview : `${ baseApiImgUrl } / ${ publicRuntimeConfig ?. urls ?. ipfs } /${ hash } ` ,
26+ preview : `${ publicRuntimeConfig ?. urls ?. ipfs } /${ hash } ` ,
2927 raw : null ,
3028 } ,
3129 validated : null ,
You can’t perform that action at this time.
0 commit comments