Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FE Release 2024-01-06 #3483

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/synapse-interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.41.4](https://github.com/synapsecns/sanguine/compare/@synapsecns/[email protected]...@synapsecns/[email protected]) (2025-01-06)

**Note:** Version bump only for package @synapsecns/synapse-interface





## [0.41.3](https://github.com/synapsecns/sanguine/compare/@synapsecns/[email protected]...@synapsecns/[email protected]) (2024-12-30)

**Note:** Version bump only for package @synapsecns/synapse-interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
LANDING_PATH,
TELEGRAM_URL,
TWITTER_URL,
STAKE_SYN_FOR_CX_URL,
} from '@/constants/urls'
import { NAVIGATION } from '@/constants/routes'
import { MoreButton } from './MoreButton'
Expand Down Expand Up @@ -51,6 +52,22 @@ const TODO_REMOVE_wrapperStyle = {
backgroundRepeat: 'no-repeat',
}

const StakingBannerContent = () => {
return (
<div>
Stake your SYN to receive CX (Cortex Protocol) tokens{' '}
<a
href={STAKE_SYN_FOR_CX_URL}
target="blank"
className="underline hover:cursor hover:text-white/65"
>
here
</a>
!
</div>
)
}
Comment on lines +55 to +69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix the external link to prevent security risks.

The target="blank" attribute should be target="_blank" and, as a best practice, include rel="noopener noreferrer" to reduce security vulnerabilities and prevent passing window context to other sites.

Apply the following diff to fix it:

<a
-  href={STAKE_SYN_FOR_CX_URL}
-  target="blank"
+  href={STAKE_SYN_FOR_CX_URL}
+  target="_blank"
+  rel="noopener noreferrer"
  className="underline hover:cursor hover:text-white/65"
>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const StakingBannerContent = () => {
return (
<div>
Stake your SYN to receive CX (Cortex Protocol) tokens{' '}
<a
href={STAKE_SYN_FOR_CX_URL}
target="blank"
className="underline hover:cursor hover:text-white/65"
>
here
</a>
!
</div>
)
}
const StakingBannerContent = () => {
return (
<div>
Stake your SYN to receive CX (Cortex Protocol) tokens{' '}
<a
href={STAKE_SYN_FOR_CX_URL}
target="_blank"
rel="noopener noreferrer"
className="underline hover:cursor hover:text-white/65"
>
here
</a>
!
</div>
)
}


export function LandingPageWrapper({ children }: { children: any }) {
return (
<div className="dark">
Expand All @@ -60,9 +77,10 @@ export function LandingPageWrapper({ children }: { children: any }) {
>
<AnnouncementBanner
bannerId="2024-12-18-cortex-staking"
bannerContent="Stake your SYN to receive CX (Cortex Protocol) tokens!"
bannerContent={<StakingBannerContent />}
// bannerContent="Stake your SYN to receive CX (Cortex Protocol) tokens!"
startDate={new Date('2024-12-17T18:45:09+00:00')}
endDate={new Date('2025-01-25T18:45:09+00:00')}
endDate={new Date('2025-02-25T18:45:09+00:00')}
/>
<MaintenanceBanners />
<LandingNav />
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synapsecns/synapse-interface",
"version": "0.41.3",
"version": "0.41.4",
"private": true,
"engines": {
"node": ">=18.18.0"
Expand Down
Loading