-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v2/storage): add download completion/cancelation modal screen (#…
- Loading branch information
Showing
14 changed files
with
534 additions
and
155 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
44 changes: 44 additions & 0 deletions
44
...es/ResponsesPage/storage/UnlockedResponses/DownloadWithAttachmentModal/CanceledScreen.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { | ||
Badge, | ||
ModalBody, | ||
ModalFooter, | ||
ModalHeader, | ||
Text, | ||
Wrap, | ||
} from '@chakra-ui/react' | ||
|
||
import { useIsMobile } from '~hooks/useIsMobile' | ||
import Button from '~components/Button' | ||
import { ModalCloseButton } from '~components/Modal' | ||
|
||
interface CanceledScreenProps { | ||
onClose: () => void | ||
} | ||
|
||
export const CanceledScreen = ({ | ||
onClose, | ||
}: CanceledScreenProps): JSX.Element => { | ||
const isMobile = useIsMobile() | ||
|
||
return ( | ||
<> | ||
<ModalCloseButton /> | ||
<ModalHeader color="secondary.700" pr="4.5rem"> | ||
<Wrap shouldWrapChildren direction="row" align="center"> | ||
<Text>Download stopped</Text> | ||
<Badge w="fit-content" colorScheme="success"> | ||
beta | ||
</Badge> | ||
</Wrap> | ||
</ModalHeader> | ||
<ModalBody whiteSpace="pre-line" color="secondary.500"> | ||
Your responses and attachments have not been downloaded successfully. | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button isFullWidth={isMobile} onClick={onClose}> | ||
Back to responses | ||
</Button> | ||
</ModalFooter> | ||
</> | ||
) | ||
} |
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
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
Oops, something went wrong.