Skip to content

Commit

Permalink
added support for external link navigation (#149)
Browse files Browse the repository at this point in the history
* added support for external link navigation

* Fixed Navigation redirection for landing page card if it is an external url.
  • Loading branch information
jagankumar-egov authored Nov 16, 2024
1 parent 38bed33 commit 57f3a58
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion react/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "webpack --mode production"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.53",
"@egovernments/digit-ui-components": "0.0.2-beta.54",
"@egovernments/digit-ui-libraries": "1.8.2-beta.1",
"@egovernments/digit-ui-module-common": "1.7.10",
"@egovernments/digit-ui-module-core": "1.8.1-beta.6",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/Project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.53",
"@egovernments/digit-ui-components": "0.0.2-beta.54",
"lodash": "^4.17.21",
"react": "17.0.2",
"react-date-range": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.53",
"@egovernments/digit-ui-components": "0.0.2-beta.54",
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.53",
"@egovernments/digit-ui-components": "0.0.2-beta.54",
"react": "17.0.2",
"react-date-range": "^1.4.0",
"react-dom": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@egovernments/digit-ui-module-sample": "0.0.1",
"@egovernments/digit-ui-react-components": "1.7.10",
"@egovernments/digit-ui-svg-components": "1.0.12",
"@egovernments/digit-ui-components": "0.0.2-beta.53",
"@egovernments/digit-ui-components": "0.0.2-beta.54",
"babel-loader": "8.1.0",
"clean-webpack-plugin": "4.0.0",
"css-loader": "5.2.6",
Expand Down
6 changes: 6 additions & 0 deletions react/ui-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.0.2-beta.54] - 2024-11-16
### New Changes
- Fixed Navigation redirection for landing page card if it is an external url.


## [0.0.2-beta.51] - 2024-11-06
### New Changes
- ButtonsGroup has been renamed as ButtonGroup
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components",
"version": "0.0.2-beta.53",
"version": "0.0.2-beta.54",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.modern.js",
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/src/molecules/LandingPageCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const LandingPageCard = ({
};

const handleLinkClick = ({ link, label, icon }) => {
history?.push(link);
link?.includes(`${window?.contextPath}/`) ? history?.push(link) : window.location.href = link;
};
const primaryIconColor = Colors.lightTheme.primary[1];
const secondaryIconColor = Colors.lightTheme.paper.primary;
Expand Down

0 comments on commit 57f3a58

Please sign in to comment.