-
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.
## Tracking Info Resolves #68 ## Changes <!-- What changes did you make? --> - implement bulk unit export - various improvements ## Testing <!-- How did you confirm your changes worked? --> - ensure exports only filtered units and associated data ## Confirmation of Change <!-- Upload a screenshot, if possible. Otherwise, please provide instructions on how to see the change. --> ![image](https://github.com/TritonSE/USHS-Housing-Portal/assets/24444266/3420f23d-7553-4780-86d9-7b93c94dd023) --------- Co-authored-by: Pranav Kumar Soma <[email protected]>
- Loading branch information
Showing
12 changed files
with
276 additions
and
139 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,88 @@ | ||
import styled from "styled-components"; | ||
|
||
import { Button } from "./Button"; | ||
|
||
const Overlay = styled.div` | ||
width: 100vw; | ||
height: 100vh; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
position: fixed; | ||
background: rgba(0, 0, 0, 0.25); | ||
z-index: 2; | ||
`; | ||
|
||
const Modal = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
border-radius: 20px; | ||
background: #fff; | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: flex-start; | ||
gap: 30px; | ||
z-index: 2; | ||
padding: 97px 186px; | ||
`; | ||
|
||
const HeadingWrapper = styled.div` | ||
font-family: "Neutraface Text"; | ||
font-size: 32px; | ||
font-style: normal; | ||
font-weight: 700; | ||
text-align: center; | ||
`; | ||
|
||
const MessageWrapper = styled.div` | ||
font-size: 16px; | ||
margin-top: 10px; | ||
text-align: center; | ||
`; | ||
|
||
const ButtonsWrapper = styled.div` | ||
padding-top: 25px; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 400px; | ||
`; | ||
|
||
const Icon = styled.img` | ||
width: 78px; | ||
height: 78px; | ||
`; | ||
|
||
type PopupProps = { | ||
active: boolean; | ||
onClose: () => void; | ||
}; | ||
|
||
export const ExportPopup = ({ active, onClose }: PopupProps) => { | ||
if (!active) return null; | ||
|
||
return ( | ||
<> | ||
<Overlay /> | ||
<Modal> | ||
<Icon src="/dark_green_check.svg" /> | ||
<div> | ||
<HeadingWrapper>Data Exporting...</HeadingWrapper> | ||
<MessageWrapper> | ||
Generating an Excel sheet with the currently filtered Units and associated Referrals and | ||
Renter Candidates. The download will start shortly... | ||
</MessageWrapper> | ||
</div> | ||
<ButtonsWrapper> | ||
<Button onClick={onClose} kind="primary"> | ||
Done | ||
</Button> | ||
</ButtonsWrapper> | ||
</Modal> | ||
</> | ||
); | ||
}; |
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.