move filter submit button to right (as according to design sheet)

This commit is contained in:
b1ek 2023-05-11 23:47:23 +10:00
parent 2ff0851d60
commit 69c66d943a
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 16 additions and 14 deletions

View File

@ -317,19 +317,21 @@ const FiltersForm = (props) => {
</SearchBarText>
</SearchBarFilter>
<SubmitBtn onClick={onSumbit} disabled={props.loading}>
{
props.loading ?
<>
<HashLoader color='#a1adb3' cssOverride={{marginRight: 6, transform: 'translate(-3px, 2px) scale(1.5)'}} size={14} />
Загрузка данных...
</> :
<>
<SVGIcon src='/images/icons/search.svg' width='14' height='14' />
Показать варианты
</>
}
</SubmitBtn>
<div style={{float: 'right'}}>
<SubmitBtn onClick={onSumbit} disabled={props.loading}>
{
props.loading ?
<>
<HashLoader color='#a1adb3' cssOverride={{marginRight: 6, transform: 'translate(-3px, 2px) scale(1.5)'}} size={14} />
Загрузка данных...
</> :
<>
<SVGIcon src='/images/icons/search.svg' width='14' height='14' />
Показать варианты
</>
}
</SubmitBtn>
</div>
</FiltersEl>
);
}
@ -346,7 +348,7 @@ export default class IndexPage extends React.Component {
page: 0,
data_loaded: false,
load_err: false,
loading_filters: false
loading_filters: true
};
ApartamentService.getAll(100).then(data => {