Skip to content

Commit e65bd46

Browse files
committed
feat: update user profile link to open in a new tab using CLOUD_URL
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent 4222aad commit e65bd46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/custom/CatalogDesignTable/columnConfig.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { MUIDataTableColumn, MUIDataTableMeta } from 'mui-datatables';
44
import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from 'react-share';
55
import { Avatar, Box, Grid, Typography } from '../../base';
6+
import { CLOUD_URL } from '../../constants/constants';
67
import { iconMedium } from '../../constants/iconsSizes';
78
import {
89
ChainIcon,
@@ -165,7 +166,7 @@ export const createDesignColumns = ({
165166
alt={displayName}
166167
src={avatar_url}
167168
onClick={() => {
168-
window.location.href = `/user/${user_id}`;
169+
window.open(`${CLOUD_URL}/user/${user_id}`, '_blank');
169170
}}
170171
>
171172
{!avatar_url && <PersonIcon />}

0 commit comments

Comments
 (0)