Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: myriadsocial/myriad-web
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.3.2
Choose a base ref
...
head repository: myriadsocial/myriad-web
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.3.3
Choose a head ref
  • 9 commits
  • 32 files changed
  • 6 contributors

Commits on Mar 13, 2023

  1. chore(deps): bump actions/cache from 3.3.0 to 3.3.1 (#1763)

    Bumps [actions/cache](https://github.com/actions/cache) from 3.3.0 to 3.3.1.
    - [Release notes](https://github.com/actions/cache/releases)
    - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
    - [Commits](actions/cache@940f3d7...88522ab)
    
    ---
    updated-dependencies:
    - dependency-name: actions/cache
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 13, 2023
    Copy the full SHA
    936da7e View commit details

Commits on Mar 14, 2023

  1. fix: change error handling message as anonymous user (#1765)

    * feat: add new translation
    
    * feat: update flow & modal reply comment
    
    * feat: update modal upvote & downvote
    
    * feat: update modal add to timeline
    
    * feat: update modal send tip
    
    * feat: update modal create timeline
    
    * feat: update modal follow timeline
    
    * feat: update modal add post
    
    * feat: add modal friend menu if anonym
    nekaartajaya authored Mar 14, 2023
    Copy the full SHA
    365bafe View commit details

Commits on Mar 15, 2023

  1. fix: tipping (#1767)

    - show modal connect to near if click tipping when wallet is near
    - sign in to near website
    - update near api js package
    - add new translate
    rubenkristian authored Mar 15, 2023
    Copy the full SHA
    e76064b View commit details
  2. chore(deps): bump github/codeql-action from 2.2.6 to 2.2.7 (#1768)

    Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.6 to 2.2.7.
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@16964e9...168b99b)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 15, 2023
    Copy the full SHA
    675add4 View commit details

Commits on Mar 16, 2023

  1. fix: validation create post on mobile display (#1769)

    * fix: set debio tips (#1753)
    
    feat: set debio tips
    
    * chore(deps): bump google-github-actions/release-please-action from 3.7.4 to 3.7.5 (#1754)
    
    chore(deps): bump google-github-actions/release-please-action
    
    Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from 3.7.4 to 3.7.5.
    - [Release notes](https://github.com/google-github-actions/release-please-action/releases)
    - [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md)
    - [Commits](google-github-actions/release-please-action@d3c71f9...e0b9d18)
    
    ---
    updated-dependencies:
    - dependency-name: google-github-actions/release-please-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    
    * MYR-3002: solving error on validation post
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: Kristian Ruben <56469224+rubenkristian@users.noreply.github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    3 people authored Mar 16, 2023
    Copy the full SHA
    22e83cb View commit details
  2. Copy the full SHA
    ea72450 View commit details
  3. Copy the full SHA
    a7b8210 View commit details

Commits on Mar 17, 2023

  1. chore(deps): bump actions/checkout from 3.3.0 to 3.4.0 (#1772)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@ac59398...24cb908)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 17, 2023
    Copy the full SHA
    959b923 View commit details
  2. Copy the full SHA
    5d07049 View commit details
Showing with 888 additions and 139 deletions.
  1. +5 −5 .github/workflows/cicd.yaml
  2. +2 −2 .github/workflows/cii.yaml
  3. +4 −4 .github/workflows/sast.yaml
  4. +11 −0 CHANGELOG.md
  5. +2 −2 package.json
  6. +16 −4 src/components/CommentDetail/CommentDetail.tsx
  7. +1 −1 src/components/ExclusiveContentCreate/Payment/ButtonPayment.tsx
  8. +20 −4 src/components/Expericence/Experience.tsx
  9. +20 −4 src/components/ExpericenceRightBar/Experience.tsx
  10. +8 −11 src/components/ExperiencePreview/ExperienceSignIn.tsx
  11. +21 −3 src/components/Menu/Menu.tsx
  12. +8 −3 src/components/PostCreate/PostCreate.tsx
  13. +4 −4 src/components/PostDetail/PostDetail.tsx
  14. +42 −16 src/components/PostDetail/render/AddToTimeline/AddToTimeline.tsx
  15. +1 −0 src/components/PostDetail/render/Footer/Footer.style.ts
  16. +13 −13 src/components/PostDetail/render/Footer/Footer.tsx
  17. +1 −1 src/components/PostDetail/render/Header/Header.tsx
  18. +24 −7 src/components/Richtext/RichTextContainer.tsx
  19. +6 −0 src/components/Richtext/richtext.style.ts
  20. +39 −22 src/components/RightMenuBar/tabs/ExperienceTab.tsx
  21. +9 −0 src/components/atoms/Icon/Icon.style.ts
  22. +288 −0 src/components/atoms/Icon/Icon.tsx
  23. +38 −0 src/components/atoms/Prompt/prompt.component.tsx
  24. +1 −0 src/components/atoms/Prompt/prompt.style.ts
  25. +13 −1 src/components/atoms/Prompt/prompt.ts
  26. +32 −8 src/components/atoms/Voting/index.tsx
  27. +13 −1 src/components/common/Confirm/Confirm.interface.ts
  28. +94 −7 src/components/common/SendTipButton/SendTipButton.tsx
  29. +49 −3 src/locale/en.json
  30. +46 −1 src/locale/id.json
  31. +46 −1 src/locale/ru.json
  32. +11 −11 yarn.lock
10 changes: 5 additions & 5 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ jobs:
name: Test on Node.js 16 ( ${{ matrix.command }} )
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
with:
fetch-depth: 0
- name: Set Up Node.js
@@ -49,7 +49,7 @@ jobs:
name: Build
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
with:
fetch-depth: 0
- name: Set Up QEMU
@@ -60,7 +60,7 @@ jobs:
with:
install: true
- name: Cache Docker Layers
uses: actions/cache@940f3d7cf195ba83374c77632d1e2cbb2f24ae68
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -96,7 +96,7 @@ jobs:
name: Release Please
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
with:
fetch-depth: 0
- name: Release
@@ -164,7 +164,7 @@ jobs:
name: Deploy to ${{ matrix.environment }}
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
with:
fetch-depth: 0
- name: Authenticate to Google Cloud
4 changes: 2 additions & 2 deletions .github/workflows/cii.yaml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ jobs:
name: OpenSSF Scorecards
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
- name: Analize
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86
with:
@@ -37,6 +37,6 @@ jobs:
path: results.sarif
retention-days: 5
- name: Upload Result to Code-Scanning
uses: github/codeql-action/upload-sarif@16964e90ba004cdf0cd845b866b5df21038b7723
uses: github/codeql-action/upload-sarif@168b99b3c22180941ae7dbdd5f5c9678ede476ba
with:
sarif_file: results.sarif
8 changes: 4 additions & 4 deletions .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
@@ -28,12 +28,12 @@ jobs:
name: CodeQL ( ${{ matrix.language }} )
steps:
- name: Checkout Repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f
- name: Initialize
uses: github/codeql-action/init@16964e90ba004cdf0cd845b866b5df21038b7723
uses: github/codeql-action/init@168b99b3c22180941ae7dbdd5f5c9678ede476ba
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@16964e90ba004cdf0cd845b866b5df21038b7723
uses: github/codeql-action/autobuild@168b99b3c22180941ae7dbdd5f5c9678ede476ba
- name: Analize
uses: github/codeql-action/analyze@16964e90ba004cdf0cd845b866b5df21038b7723
uses: github/codeql-action/analyze@168b99b3c22180941ae7dbdd5f5c9678ede476ba
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [2.3.3](https://github.com/myriadsocial/myriad-web/compare/2.3.2...2.3.3) (2023-03-17)


### Bug Fixes

* change error handling message as anonymous user ([#1765](https://github.com/myriadsocial/myriad-web/issues/1765)) ([365bafe](https://github.com/myriadsocial/myriad-web/commit/365bafeb3369323596897298c307174c4292637e))
* tipping ([#1767](https://github.com/myriadsocial/myriad-web/issues/1767)) ([e76064b](https://github.com/myriadsocial/myriad-web/commit/e76064b8a608db2a1cb3ede2a3c7ab54d61b39a6))
* typo on reveal content modal ([#1771](https://github.com/myriadsocial/myriad-web/issues/1771)) ([a7b8210](https://github.com/myriadsocial/myriad-web/commit/a7b821064c2b28cbda4d935ce2ae2f962c535a1f))
* validation create post on mobile display ([#1769](https://github.com/myriadsocial/myriad-web/issues/1769)) ([22e83cb](https://github.com/myriadsocial/myriad-web/commit/22e83cbaa64b914d55991f4cca5558aaef5c7fb9))
* wrong time on imported post ([#1770](https://github.com/myriadsocial/myriad-web/issues/1770)) ([ea72450](https://github.com/myriadsocial/myriad-web/commit/ea72450f20e328f38c84163ee56856e496d6896e))

## [2.3.2](https://github.com/myriadsocial/myriad-web/compare/2.3.1...2.3.2) (2023-03-13)


4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "myriad-web",
"version": "2.3.2",
"version": "2.3.3",
"description": "myriad-web",
"private": true,
"license": "AGPL-3.0",
@@ -70,7 +70,7 @@
"lodash": "^4.17.21",
"millify": "^4.0.0",
"mux.js": "^6.0.1",
"near-api-js": "^0.44.2",
"near-api-js": "^1.1.0",
"next": "latest",
"next-auth": "4.10.3",
"next-http-proxy-middleware": "^1.2.4",
20 changes: 16 additions & 4 deletions src/components/CommentDetail/CommentDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DotsVerticalIcon } from '@heroicons/react/outline';

import React, { useEffect, forwardRef } from 'react';
import { useCookies } from 'react-cookie';
import { useSelector, useDispatch } from 'react-redux';

import Link from 'next/link';
@@ -33,6 +34,7 @@ import { useStyles } from './CommentDetail.styles';
import CommentEditor from 'components/CommentEditor/CommentEditor.container';
import ButtonPayment from 'components/ExclusiveContentCreate/Payment/ButtonPayment';
import Reveal from 'components/ExclusiveContentCreate/Reveal/Reveal';
import { COOKIE_INSTANCE_URL } from 'components/SelectServer';
import { NodeViewer } from 'components/common/NodeViewer';
import { ExclusiveContent } from 'components/common/Tipping/Tipping.interface';
import ShowIf from 'src/components/common/show-if.component';
@@ -113,10 +115,21 @@ export const CommentDetail = forwardRef<HTMLDivElement, CommentDetailProps>(
}
}, [comment.metric.comments]);

const handleOpenReply = () => {
if (!user) return;
const [cookies] = useCookies([COOKIE_INSTANCE_URL]);

setIsReplying(!isReplying);
const handleOpenReply = () => {
if (!user) {
confirm({
icon: 'comment',
title: i18n.t('Confirm.Anonymous.Comment.Title'),
description: i18n.t('Confirm.Anonymous.Comment.Desc'),
confirmationText: i18n.t('General.SignIn'),
cancellationText: i18n.t('LiteVersion.MaybeLater'),
onConfirm: () => {
router.push(`/login?instance=${cookies[COOKIE_INSTANCE_URL]}`);
},
});
} else setIsReplying(!isReplying);
};

const handleSubmitComment = (attributes: Partial<CommentProps>) => {
@@ -360,7 +373,6 @@ export const CommentDetail = forwardRef<HTMLDivElement, CommentDetailProps>(

<Button
classes={{ root: style.button }}
disabled={!user}
onClick={handleOpenReply}
size="small"
variant="text">
Original file line number Diff line number Diff line change
@@ -170,7 +170,7 @@ const ButtonPayment = ({
{i18n.t('General.Cancel')}
</Button>
<Button variant="contained" color="primary" onClick={handleLogin}>
{i18n.t('Login.Layout.Btn_Signin')}
{i18n.t('General.SignIn')}
</Button>
</div>
</PromptComponent>
24 changes: 20 additions & 4 deletions src/components/Expericence/Experience.tsx
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import { DotsVerticalIcon } from '@heroicons/react/outline';
import { DuplicateIcon } from '@heroicons/react/outline';

import React, { useState } from 'react';
import { useCookies } from 'react-cookie';
import CopyToClipboard from 'react-copy-to-clipboard';

import getConfig from 'next/config';
@@ -23,6 +24,7 @@ import Typography from '@material-ui/core/Typography';
import useConfirm from '../common/Confirm/use-confirm.hook';
import { useStyles } from './Experience.style';

import { COOKIE_INSTANCE_URL } from 'components/SelectServer';
import { WithAuthorizeAction } from 'components/common/Authorization/WithAuthorizeAction';
import { useEnqueueSnackbar } from 'components/common/Snackbar/useEnqueueSnackbar.hook';
import { Modal } from 'src/components/atoms/Modal';
@@ -116,11 +118,26 @@ export const Experience: React.FC<ExperienceProps> = props => {
}
};

const [cookies] = useCookies([COOKIE_INSTANCE_URL]);

const handleSubscribeExperience = () => {
handleCloseSettings();

if (onSubscribe) {
onSubscribe(experienceId);
if (!user) {
confirm({
icon: 'followTimeline',
title: i18n.t('Confirm.Anonymous.FollowTimeline.Title'),
description: i18n.t('Confirm.Anonymous.FollowTimeline.Desc'),
confirmationText: i18n.t('General.SignIn'),
cancellationText: i18n.t('LiteVersion.MaybeLater'),
onConfirm: () => {
router.push(`/login?instance=${cookies[COOKIE_INSTANCE_URL]}`);
},
});
} else {
if (onSubscribe) {
onSubscribe(experienceId);
}
}
};

@@ -342,8 +359,7 @@ export const Experience: React.FC<ExperienceProps> = props => {
}>
<MenuItem
onClick={handleSubscribeExperience}
fallback={handleCloseSettings}
disabled={anonymous}>
fallback={handleCloseSettings}>
{i18n.t('Experience.List.Menu.Subscribe')}
</MenuItem>
</ShowIf>
24 changes: 20 additions & 4 deletions src/components/ExpericenceRightBar/Experience.tsx
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import { DotsVerticalIcon } from '@heroicons/react/outline';
import { DuplicateIcon } from '@heroicons/react/outline';

import React, { useState } from 'react';
import { useCookies } from 'react-cookie';
import CopyToClipboard from 'react-copy-to-clipboard';

import getConfig from 'next/config';
@@ -23,6 +24,7 @@ import Typography from '@material-ui/core/Typography';
import useConfirm from '../common/Confirm/use-confirm.hook';
import { useStyles } from './Experience.style';

import { COOKIE_INSTANCE_URL } from 'components/SelectServer';
import { WithAuthorizeAction } from 'components/common/Authorization/WithAuthorizeAction';
import { useEnqueueSnackbar } from 'components/common/Snackbar/useEnqueueSnackbar.hook';
import { Modal } from 'src/components/atoms/Modal';
@@ -119,11 +121,26 @@ export const Experience: React.FC<ExperienceProps> = props => {
}
};

const [cookies] = useCookies([COOKIE_INSTANCE_URL]);

const handleSubscribeExperience = () => {
handleCloseSettings();

if (onSubscribe) {
onSubscribe(experienceId);
if (!user) {
confirm({
icon: 'followTimeline',
title: i18n.t('Confirm.Anonymous.FollowTimeline.Title'),
description: i18n.t('Confirm.Anonymous.FollowTimeline.Desc'),
confirmationText: i18n.t('General.SignIn'),
cancellationText: i18n.t('LiteVersion.MaybeLater'),
onConfirm: () => {
router.push(`/login?instance=${cookies[COOKIE_INSTANCE_URL]}`);
},
});
} else {
if (onSubscribe) {
onSubscribe(experienceId);
}
}
};

@@ -303,8 +320,7 @@ export const Experience: React.FC<ExperienceProps> = props => {
}>
<MenuItem
onClick={handleSubscribeExperience}
fallback={handleCloseSettings}
disabled={anonymous}>
fallback={handleCloseSettings}>
{i18n.t('Experience.List.Menu.Subscribe')}
</MenuItem>
</ShowIf>
19 changes: 8 additions & 11 deletions src/components/ExperiencePreview/ExperienceSignIn.tsx
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import { useStyles } from './experience.style';
import { COOKIE_INSTANCE_URL } from 'components/SelectServer';
import { PromptComponent as PromptMobile } from 'src/components/Mobile/PromptDrawer/Prompt';
import { PromptComponent } from 'src/components/atoms/Prompt/prompt.component';
import i18n from 'src/locale';

export type ExperienceSignInProps = {
open: boolean;
@@ -32,20 +33,16 @@ export const ExperienceSignIn: React.FC<ExperienceSignInProps> = props => {
return (
<>
<PromptMobile
title={'Start your Experience!'}
subtitle={
'When you join Myriad, you can create, subscribe or clone an experience.'
}
title={i18n.t('Confirm.Anonymous.FollowTimeline.Title')}
subtitle={i18n.t('Confirm.Anonymous.FollowTimeline.Desc')}
open={open}
onCancel={onClose}
/>
<PromptComponent
title={'Start your Experience!'}
subtitle={
'When you join Myriad, you can create, subscribe, or clone \n an experience.'
}
title={i18n.t('Confirm.Anonymous.FollowTimeline.Title')}
subtitle={i18n.t('Confirm.Anonymous.FollowTimeline.Desc')}
open={open}
icon="warning"
icon="followTimeline"
onCancel={onClose}>
<div className={style.action}>
<Button
@@ -54,14 +51,14 @@ export const ExperienceSignIn: React.FC<ExperienceSignInProps> = props => {
color="secondary"
style={{ marginRight: '12px' }}
onClick={onClose}>
Back
{i18n.t('LiteVersion.MaybeLater')}
</Button>
<Button
size="small"
variant="contained"
color="primary"
onClick={handleSignIn}>
Sign in
{i18n.t('General.SignIn')}
</Button>
</div>
</PromptComponent>
24 changes: 21 additions & 3 deletions src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import { useCookies } from 'react-cookie';

import Image from 'next/image';
import { useRouter } from 'next/router';
@@ -10,8 +11,9 @@ import { ListItemComponent } from '../atoms/ListItem';
import { useStyles } from './Menu.styles';
import { useMenuList, MenuDetail, MenuId } from './use-menu-list';

import useConfirm from 'components/common/Confirm/use-confirm.hook';
import { useEnqueueSnackbar } from 'components/common/Snackbar/useEnqueueSnackbar.hook';
import SelectServer from 'src/components/SelectServer';
import SelectServer, { COOKIE_INSTANCE_URL } from 'src/components/SelectServer';
import { useInstances } from 'src/hooks/use-instances.hooks';
import { ServerListProps } from 'src/interfaces/server-list';
import i18n from 'src/locale';
@@ -24,12 +26,13 @@ type MenuProps = {
};

export const Menu: React.FC<MenuProps> = props => {
const { selected, onChange, logo } = props;
const { selected, onChange, logo, anonymous } = props;

const styles = useStyles();
const router = useRouter();

const enqueueSnackbar = useEnqueueSnackbar();
const confirm = useConfirm();

const { switchInstance, loadingSwitch, onLoadingSwitch } = useInstances();

@@ -42,9 +45,24 @@ export const Menu: React.FC<MenuProps> = props => {
router.push('/', undefined, { shallow: true });
};

const [cookies] = useCookies([COOKIE_INSTANCE_URL]);

const openMenu = (item: MenuDetail) => () => {
if (router.pathname === item.url) return;
onChange(item.url);
if (anonymous && item.url === '/friends') {
confirm({
icon: 'people',
title: i18n.t('Confirm.Anonymous.People.Title'),
description: i18n.t('Confirm.Anonymous.People.Desc'),
confirmationText: i18n.t('General.SignIn'),
cancellationText: i18n.t('LiteVersion.MaybeLater'),
onConfirm: () => {
router.push(`/login?instance=${cookies[COOKIE_INSTANCE_URL]}`);
},
});
} else {
onChange(item.url);
}
};

const handleSwitchInstance = async (
Loading