diff --git a/public/configs/markets.json b/public/configs/markets.json index 63f35dfb9..6febb544a 100644 --- a/public/configs/markets.json +++ b/public/configs/markets.json @@ -72,7 +72,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/ac-milan-fan-token/", "name": "AC Milan Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com/", @@ -456,7 +455,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/argentinefootballassociationfantoken/", "name": "Argentine Football Association Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://socios.com", @@ -561,7 +559,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/atletico-de-madrid-fan-token/", "name": "Atletico De Madrid Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com/atletico-de-madrid/", @@ -712,7 +709,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/fc-barcelona-fan-token/", "name": "FC Barcelona Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://chiliz.com", @@ -1289,7 +1285,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/manchester-city-fan-token/", "name": "Manchester City Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com", @@ -2695,7 +2690,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/topgoal/", "name": "TopGoal", "tags": [ - "Entertainment", "NFT", "Entertainment" ], @@ -3287,7 +3281,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/juventus-fan-token/", "name": "Juventus Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com/juventus/", @@ -4645,7 +4638,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/og-fan-token/", "name": "OG Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com/og/", @@ -5218,7 +5210,6 @@ "coinMarketCapsLink": "https://coinmarketcap.com/currencies/paris-saint-germain-fan-token/", "name": "Paris Saint-Germain Fan Token", "tags": [ - "Entertainment", "Entertainment" ], "websiteLink": "https://www.socios.com/paris-saint-germain/", diff --git a/src/components/SearchInput.tsx b/src/components/SearchInput.tsx index d502cf271..fc10a1d38 100644 --- a/src/components/SearchInput.tsx +++ b/src/components/SearchInput.tsx @@ -10,16 +10,17 @@ import { Input, InputType, type InputProps } from '@/components/Input'; type ElementProps = { onTextChange?: (value: string) => void; + className?: string; }; export type SearchInputProps = ElementProps & InputProps; -export const SearchInput = ({ placeholder, onTextChange }: SearchInputProps) => { +export const SearchInput = ({ placeholder, onTextChange, className }: SearchInputProps) => { const [value, setValue] = useState(''); const inputRef = useRef(null); return ( - <$Search> + <$Search className={className}> <$Icon iconName={IconName.Search} /> { - return market.tags?.includes('ENT'); + return market.tags?.includes('Entertainment'); }, [MarketFilters.FX]: (market: MarketData) => { return market.tags?.includes('FX'); diff --git a/src/views/MarketFilter.tsx b/src/views/MarketFilter.tsx index b06604148..307e457c3 100644 --- a/src/views/MarketFilter.tsx +++ b/src/views/MarketFilter.tsx @@ -37,15 +37,16 @@ export const MarketFilter = ({ const stringGetter = useStringGetter(); const navigate = useNavigate(); const { hasPotentialMarketsData } = usePotentialMarkets(); + const showProposeButton = hasPotentialMarketsData && !hideNewMarketButton; return ( <$MarketFilter $compactLayout={compactLayout}> - -
+
<$ToggleGroupContainer $compactLayout={compactLayout}> <$ToggleGroup items={Object.values(filters).map((value) => ({ @@ -60,7 +61,7 @@ export const MarketFilter = ({ /> - {hasPotentialMarketsData && !hideNewMarketButton && ( + {showProposeButton && (