From 3268217156e3ea70ca0165b4987493ab285a3456 Mon Sep 17 00:00:00 2001 From: Atanas Atanasov Date: Tue, 7 Nov 2023 12:32:01 +0200 Subject: [PATCH] Address SonarLint findings (#2635) --- src/components/funding/index.tsx | 4 +-- src/data/social.tsx | 6 ++--- src/pages/blog/[slug].tsx | 4 +-- src/pages/portfolio/open-source/[slug].tsx | 4 +-- src/styles/funding.css | 6 ++++- src/styles/social.css | 6 +++++ .../footer/__snapshots__/index.tsx.snap | 3 +-- .../funding/__snapshots__/index.tsx.snap | 24 ++++++----------- .../layout/__snapshots__/index.tsx.snap | 3 +-- tests/src/components/mdx/index.tsx | 4 +-- tests/src/pages/__snapshots__/404.tsx.snap | 3 +-- .../src/pages/__snapshots__/_offline.tsx.snap | 3 +-- tests/src/pages/__snapshots__/about.tsx.snap | 9 +++---- .../src/pages/__snapshots__/articles.tsx.snap | 27 +++++++------------ .../pages/__snapshots__/certificates.tsx.snap | 3 +-- tests/src/pages/__snapshots__/index.tsx.snap | 12 +++------ .../__snapshots__/interactive-resume.tsx.snap | 6 ++--- tests/src/pages/__snapshots__/music.tsx.snap | 24 ++++++----------- .../pages/__snapshots__/occupation.tsx.snap | 3 +-- tests/src/pages/__snapshots__/resume.tsx.snap | 6 ++--- tests/src/pages/__snapshots__/skills.tsx.snap | 6 ++--- tests/src/pages/__snapshots__/slides.tsx.snap | 9 +++---- tests/src/pages/__snapshots__/social.tsx.snap | 12 ++++----- .../pages/__snapshots__/testimonials.tsx.snap | 6 ++--- .../src/pages/__snapshots__/timeline.tsx.snap | 3 +-- tests/src/pages/__snapshots__/videos.tsx.snap | 9 +++---- .../pages/blog/__snapshots__/[slug].tsx.snap | 6 ++--- .../pages/blog/__snapshots__/index.tsx.snap | 3 +-- .../automotive-applications.tsx.snap | 3 +-- .../__snapshots__/email-templates.tsx.snap | 6 ++--- .../portfolio/__snapshots__/index.tsx.snap | 3 +-- .../mobile-applications.tsx.snap | 3 +-- .../__snapshots__/personal-projects.tsx.snap | 3 +-- .../__snapshots__/web-applications.tsx.snap | 12 +++------ .../open-source/__snapshots__/[slug].tsx.snap | 12 +++------ .../open-source/__snapshots__/index.tsx.snap | 3 +-- .../pages/stats/__snapshots__/github.tsx.snap | 24 ++++++----------- .../pages/stats/__snapshots__/gitlab.tsx.snap | 12 +++------ .../pages/stats/__snapshots__/index.tsx.snap | 3 +-- .../pages/stats/__snapshots__/npm.tsx.snap | 3 +-- 40 files changed, 112 insertions(+), 189 deletions(-) diff --git a/src/components/funding/index.tsx b/src/components/funding/index.tsx index 139a0455b..dbf20bc58 100644 --- a/src/components/funding/index.tsx +++ b/src/components/funding/index.tsx @@ -33,7 +33,7 @@ export const Funding: FC> = ({ data }) => { Sponsor me -
setOpen(false)} /> + -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
, + () => , undefined, 'MDX' ); diff --git a/tests/src/pages/__snapshots__/404.tsx.snap b/tests/src/pages/__snapshots__/404.tsx.snap index 146b2e439..4498b845d 100644 --- a/tests/src/pages/__snapshots__/404.tsx.snap +++ b/tests/src/pages/__snapshots__/404.tsx.snap @@ -1045,7 +1045,7 @@ exports[`ErrorPage component Should render the ErrorPage component 1`] = ` > Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
+ > + @scriptexbg on Twitter +
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -
Sponsor me -