-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from MetaCell/feature/CDE-57
CDE-57 feat: Add no suggestions page
- Loading branch information
Showing
4 changed files
with
80 additions
and
18 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
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,49 @@ | ||
import {Stack, Typography, Box, Button} from '@mui/material'; | ||
|
||
interface NoSuggestionsProps { | ||
onNext: () => void; | ||
} | ||
|
||
|
||
function NoSuggestions({onNext}: NoSuggestionsProps) { | ||
|
||
return ( | ||
<> | ||
<Box | ||
overflow='auto' | ||
display='flex' | ||
justifyContent='center' | ||
alignItems='center' | ||
height={1} | ||
p='1.5rem' | ||
pt={6} | ||
pb={6} | ||
> | ||
<Stack spacing={6} sx={{width: 'max-content'}}> | ||
<Stack spacing={1}> | ||
<Typography variant='h3' textAlign="center"> | ||
No suggestions available | ||
</Typography> | ||
<Typography variant='body2' textAlign="center"> | ||
The suggestion algorithm did not detect any suggestions for the dataset given, please move | ||
to the mapping step. | ||
</Typography> | ||
</Stack> | ||
<Stack alignItems="center" sx={{width: '100%'}}> | ||
<Box> | ||
<Button | ||
disableRipple | ||
variant="contained" | ||
onClick={onNext} | ||
> | ||
Next | ||
</Button> | ||
</Box> | ||
</Stack> | ||
</Stack> | ||
</Box> | ||
</> | ||
); | ||
} | ||
|
||
export default NoSuggestions; |
10 changes: 5 additions & 5 deletions
10
lib/components/steps/SuggestionDetailUI.tsx → .../steps/Suggestions/SuggestionDetailUI.tsx
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
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