File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -1804,10 +1804,7 @@ function PlaceHolderSign() {
1804
1804
1805
1805
{ ! isSubscribe && isEnableSubscription && (
1806
1806
< div className = "mt-2" >
1807
- < Upgrade
1808
- message = "Upgrade to customize Email"
1809
- newWindow = { true }
1810
- />
1807
+ < Upgrade message = "Upgrade to customize Email" />
1811
1808
</ div >
1812
1809
) }
1813
1810
</ div >
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import { useNavigate } from "react-router-dom" ;
3
2
import { openInNewTab } from "../constant/Utils" ;
4
3
5
- function Upgrade ( { message, newWindow } ) {
6
- const navigation = useNavigate ( ) ;
7
-
4
+ function Upgrade ( { message } ) {
8
5
return (
9
6
< sup >
10
7
< span
11
8
onClick = { ( ) => {
12
- if ( newWindow ) {
13
- const url = window . location . origin + "/subscription" ;
14
- openInNewTab ( url ) ;
15
- } else {
16
- navigation ( "/subscription" ) ;
17
- }
9
+ const url = window . location . origin + "/subscription" ;
10
+ openInNewTab ( url ) ;
18
11
} }
19
12
className = "text-blue-800 text-sm cursor-pointer underline"
20
13
>
You can’t perform that action at this time.
0 commit comments