From e910ab072ac6265b527569d11679a98a8533326b Mon Sep 17 00:00:00 2001 From: Aroyan <43630681+aroyan@users.noreply.github.com> Date: Fri, 19 May 2023 04:05:17 +0000 Subject: [PATCH 1/6] fix: remove spectrum community dead link --- README.md | 4 - components/Nav/Social.js | 18 -- .../__snapshots__/MobileNavbar.spec.js.snap | 30 +-- .../NavBar/__snapshots__/Navbar.spec.js.snap | 107 +++------ .../NavBar/__snapshots__/index.spec.js.snap | 211 +++++------------ .../__snapshots__/DocsLayout.spec.js.snap | 223 ++++++------------ 6 files changed, 165 insertions(+), 428 deletions(-) diff --git a/README.md b/README.md index 13d4e734f..2976995c3 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,3 @@ styled-components-website ├── utils/ # Various utilities use across the site └── vendor/ # Cached dependencies ``` - -### Got stuck? - -Feel free to ping us on [Spectrum](https://spectrum.chat/styled-components/website) if you get stuck somewhere while trying to make this website better, let's resolve it together! diff --git a/components/Nav/Social.js b/components/Nav/Social.js index d0e8eaff7..2b9a300b6 100644 --- a/components/Nav/Social.js +++ b/components/Nav/Social.js @@ -41,11 +41,6 @@ const SocialLink = styled(Link).attrs((/* props */) => ({ } `; -const Svg = styled.svg` - width: ${p => rem(Number(p.width))}; - height: ${p => rem(Number(p.height))}; -`; - const StyledIcon = styled.div` && { width: ${p => rem(Number(p.width))}; @@ -63,21 +58,8 @@ const StyledIcon = styled.div` // // ) -const Spectrum = () => ( - - spectrum - - -); - const Social = props => ( - - - {/* */} diff --git a/test/components/NavBar/__snapshots__/MobileNavbar.spec.js.snap b/test/components/NavBar/__snapshots__/MobileNavbar.spec.js.snap index 4768188be..5c1037bfb 100644 --- a/test/components/NavBar/__snapshots__/MobileNavbar.spec.js.snap +++ b/test/components/NavBar/__snapshots__/MobileNavbar.spec.js.snap @@ -78,12 +78,7 @@ exports[`MobileNavbar renders correctly 1`] = ` fill: currentColor; } -.c17 { - width: 0.7777777777777778rem; - height: 0.7777777777777778rem; -} - -.c18.c18 { +.c17.c17 { width: NaNrem; height: 1rem; } @@ -297,31 +292,12 @@ exports[`MobileNavbar renders correctly 1`] = `