Skip to content

Commit

Permalink
HLM-5167 changing buttontype2 porps
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhant-nawale-egov committed Apr 4, 2024
1 parent a8eb928 commit 9274748
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const ButtonType1 = (props) => {
export const ButtonType2 = (props) => {
return (
<div className="button-type-2">
{props.download && (
{props.showDownloadIcon && (
<div className="icon">
<FileDownload fill={"white"} height={"24"} width={"24"} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ const Upload = ({
useEffect(() => {
window.addEventListener("keydown", handleKeyPress);

return () => {
window.removeEventListener("keydown", handleKeyPress);
};
return () => window.removeEventListener("keydown", handleKeyPress);
}, [modal]);

const handleKeyPress = (event) => {
Expand Down Expand Up @@ -597,7 +595,7 @@ const Upload = ({
RightButtonHandler={() => UploadFileClickHandler(true)}
sections={sections}
footerLeftButtonBody={<ButtonType1 text={t("ALREADY_HAVE_IT")} />}
footerRightButtonBody={<ButtonType2 text={t("DOWNLOAD_TEMPLATE")} download={true} />}
footerRightButtonBody={<ButtonType2 text={t("DOWNLOAD_TEMPLATE")} showDownloadIcon={true} />}
header={<ModalHeading label={t("HEADING_DOWNLOAD_TEMPLATE_FOR_" + selectedSection.code + "_" + selectedFileType.code)} />}
bodyText={t("INSTRUCTIONS_DOWNLOAD_TEMPLATE_FOR_" + selectedSection.code + "_" + selectedFileType.code)}
/>
Expand Down

0 comments on commit 9274748

Please sign in to comment.