| return ( | return ( | ||||
| <ProfileOffersContainer> | <ProfileOffersContainer> | ||||
| {offersToShow.length !== 0 ? ( | |||||
| <HeaderSelect | <HeaderSelect | ||||
| value={sortOption?.value ? sortOption.value : sortEnum.INITIAL.value} | value={sortOption?.value ? sortOption.value : sortEnum.INITIAL.value} | ||||
| IconComponent={DownArrow} | IconComponent={DownArrow} | ||||
| ); | ); | ||||
| })} | })} | ||||
| </HeaderSelect> | </HeaderSelect> | ||||
| ) : ( | |||||
| <></> | |||||
| )} | |||||
| <Grid | <Grid | ||||
| container | container | ||||
| direction="row" | direction="row" | ||||
| {props.isMyProfile ? "Moje objave" : "Objave kompanije"} | {props.isMyProfile ? "Moje objave" : "Objave kompanije"} | ||||
| </HeaderTitle> | </HeaderTitle> | ||||
| </Grid> | </Grid> | ||||
| {offersToShow.length !== 0 ? ( | |||||
| <SearchInput | <SearchInput | ||||
| fullWidth | fullWidth | ||||
| ref={searchRef} | ref={searchRef} | ||||
| ), | ), | ||||
| }} | }} | ||||
| /> | /> | ||||
| ) : ( | |||||
| <></> | |||||
| )} | |||||
| <OffersContainer> | <OffersContainer> | ||||
| {!isMobile ? ( | {!isMobile ? ( | ||||
| isLoadingMineOffers || isLoadingMineOffers === undefined ? ( | isLoadingMineOffers || isLoadingMineOffers === undefined ? ( |