Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenConceptLab/ocl_issues#1363 | Concept search results getting loade…
…d component
- Loading branch information
1 parent
755acc8
commit 9abd3d2
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import { Box, LinearProgress } from '@mui/material' | ||
import { BLACK } from '../../common/constants' | ||
|
||
const AutocompleteLoading = ({ text }) => { | ||
|
||
return ( | ||
<React.Fragment> | ||
<Box sx={{ width: '100%', margin: '20px 0', display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column' }}> | ||
{ | ||
text && | ||
<div className='col-xs-12' style={{width: '100%', textAlign: 'center', marginBottom: '10px', color: BLACK}}> | ||
Loading results for <b>{ text }</b> | ||
</div> | ||
} | ||
<div className='col-xs-8'> | ||
<LinearProgress /> | ||
</div> | ||
</Box> | ||
|
||
</React.Fragment> | ||
) | ||
} | ||
|
||
export default AutocompleteLoading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters