-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ShowMore Popup for Boundary Summary Screen, Added Loader for Us…
…er Download Screen (#1670) * Added Loader for User Download Screen * Added ShowMore Popup for Boundary Summary Screen --------- Co-authored-by: Nipun Arora <aroranipun1@gmail.com>
- Loading branch information
1 parent
2bd0dda
commit d618c43
Showing
5 changed files
with
107 additions
and
61 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
41 changes: 41 additions & 0 deletions
41
...ro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/ShowMoreWrapper.js
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,41 @@ | ||
import React, { Fragment, useEffect, useState } from "react"; | ||
import { Button, PopUp, Chip, Loader,} from "@egovernments/digit-ui-components"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
|
||
export const ShowMoreWrapper = ({ setShowPopUp, alreadyQueuedSelectedState, heading="" }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<PopUp | ||
className={""} | ||
style={{ | ||
maxWidth: '40%' | ||
}} | ||
type={"default"} | ||
heading={t(heading)} | ||
children={[]} | ||
onOverlayClick={() => { | ||
setShowPopUp(false); | ||
}} | ||
onClose={() => { | ||
setShowPopUp(false); | ||
}} | ||
> | ||
<div className="digit-tag-container userAccessCell"> | ||
{alreadyQueuedSelectedState?.map((item, index) => ( | ||
<Chip | ||
key={index} | ||
text={t(item)} | ||
className="" | ||
error="" | ||
extraStyles={{}} | ||
iconReq="" | ||
hideClose={true} | ||
/> | ||
))} | ||
</div> | ||
</PopUp> | ||
); | ||
|
||
}; |
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
61 changes: 50 additions & 11 deletions
61
...ro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/subBoundaryView.js
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