Ignore:
Timestamp:
02/10/26 01:23:31 (5 months ago)
Author:
Mihail <mihail2.naumov@…>
Branches:
main
Children:
546a194
Parents:
b348db4
Message:

Optimizations & Layout/Text changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/ComponentDialog.tsx

    rb348db4 rf727252  
    5757        return () => clearTimeout(timeoutId);
    5858    }, [tempSearchQuery]);
     59
     60    useEffect(() => {
     61        if (open && category) {
     62            setSelectedBrands([]);
     63            setSortOrder('price_desc');
     64            setTempSearchQuery('');
     65            setSearchQuery('');
     66            setPriceRange([0, 2000]);
     67        }
     68    }, [open, category]);
     69
    5970
    6071    useEffect(() => {
     
    297308                                Browsing:
    298309                            </Box>
    299                             <b> {category === 'gpu' ? 'Graphics Cards' : category?.toUpperCase()}</b>
     310                            <b> {category === 'gpu' ? 'GRAPHICS CARDS' : category === 'memory_card' ? 'STORAGE EXPANSION CARDS' : category?.toUpperCase()}</b>
    300311                            {mode === 'forge' && currentBuildId && (
    301312                                <Typography
Note: See TracChangeset for help on using the changeset viewer.