Skip to content

Commit

Permalink
chore: navigate to href
Browse files Browse the repository at this point in the history
  • Loading branch information
HuberTRoy committed Dec 16, 2024
1 parent 237f392 commit 04e4b98
Showing 1 changed file with 19 additions and 31 deletions.
50 changes: 19 additions & 31 deletions src/pages/projects/Create/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,14 @@ const Create: React.FC = () => {
</Typography.Link>
</Typography>
</div>
<Button
shape="round"
type="primary"
size="large"
onClick={() => {
navigate(`/explorer/project/${resultId}?action=${ProjectActionArgv.BOOST}`);
destroy();
}}
<Typography.Link
target="_href"
href={`/explorer/project/${resultId}?action=${ProjectActionArgv.BOOST}`}
>
Boost project
</Button>
<Button shape="round" type="primary" size="large">
Boost project
</Button>
</Typography.Link>
</div>

<div className={styles.plainCard}>
Expand All @@ -172,17 +169,14 @@ const Create: React.FC = () => {
</Typography.Link>
</Typography>
</div>
<Button
shape="round"
type="primary"
size="large"
onClick={() => {
navigate(`/explorer/project/${resultId}?action=${ProjectActionArgv.CREATE_PLAN}`);
destroy();
}}
<Typography.Link
target="_href"
href={`/explorer/project/${resultId}?action=${ProjectActionArgv.CREATE_PLAN}`}
>
Create flex plan
</Button>
<Button shape="round" type="primary" size="large">
Create flex plan
</Button>
</Typography.Link>
</div>

<div className={styles.plainCard}>
Expand All @@ -201,17 +195,11 @@ const Create: React.FC = () => {
</Typography.Link>
</Typography>
</div>
<Button
shape="round"
type="primary"
size="large"
onClick={() => {
navigate('/consumer/my-offers');
destroy();
}}
>
Create agreement
</Button>
<Typography.Link target="_href" href={`/consumer/my-offers`}>
<Button shape="round" type="primary" size="large">
Create agreement
</Button>
</Typography.Link>
</div>
<div className={styles.plainCard}>
<div className="col-flex" style={{ gap: 8 }}>
Expand Down

0 comments on commit 04e4b98

Please sign in to comment.