Skip to content

Commit

Permalink
fix: linting [STRY-70]
Browse files Browse the repository at this point in the history
  • Loading branch information
val-l-hosler committed Feb 26, 2024
1 parent 95556bf commit 63e8949
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
9 changes: 6 additions & 3 deletions build.washingtonpost.com/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Box, styled, Icon, theme } from "@washingtonpost/wpds-ui-kit";
import { useRouter } from "next/router";
import { Footer as SiteFooter } from "@washingtonpost/site-footer";
import Link from "next/link";
import {customNotSmBreakpoint, customSmBreakpoint} from "~/components/styleHelpers";
import {
customNotSmBreakpoint,
customSmBreakpoint,
} from "~/components/styleHelpers";

import { Github, Twitter, Youtube } from "@washingtonpost/wpds-assets";

Expand Down Expand Up @@ -80,8 +83,8 @@ export const Footer = () => {
Edit this page on GitHub.
</EditInGithub>
)}
<Box css={{[customSmBreakpoint]: {px: "$100"}, "@sm": {px: 0}}}>
<SiteFooter />
<Box css={{ [customSmBreakpoint]: { px: "$100" }, "@sm": { px: 0 } }}>
<SiteFooter />
</Box>
<Box
css={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { styled, theme, Accordion } from "@washingtonpost/wpds-ui-kit";
import Header from "../../Typography/Headers";
import { useRouter } from "next/router";
import { Change } from "~/components/Markdown/Styling";
import {customNotSmBreakpoint, customSmBreakpoint} from "~/components/styleHelpers";
import {
customNotSmBreakpoint,
customSmBreakpoint,
} from "~/components/styleHelpers";

const StyledAccordionRoot = styled(Accordion.Root, {
backgroundColor: theme.colors.gray500,
Expand Down
5 changes: 4 additions & 1 deletion build.washingtonpost.com/components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { NavigationBar } from "~/components/NavigationBar";
import Sidebar from "~/components/Layout/Components/Sidebar";
import { Footer } from "~/components/Footer";
import { ToastContainer } from "react-toastify";
import {customNotSmBreakpoint, customSmBreakpoint} from "~/components/styleHelpers";
import {
customNotSmBreakpoint,
customSmBreakpoint,
} from "~/components/styleHelpers";

const Grid = styled("div", {
display: "grid",
Expand Down
9 changes: 6 additions & 3 deletions build.washingtonpost.com/components/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import React from "react";

import Link from "next/link";
import { useRouter } from "next/router";
import {customNotSmBreakpoint, customSmBreakpoint} from "~/components/styleHelpers";
import {
customNotSmBreakpoint,
customSmBreakpoint,
} from "~/components/styleHelpers";

import {
Box,
Expand Down Expand Up @@ -47,7 +50,7 @@ const Container = styled("div", {
},
[customSmBreakpoint]: {
width: "100%",
justifyContent: "space-between"
justifyContent: "space-between",
},
});

Expand Down Expand Up @@ -161,7 +164,7 @@ export const NavigationBar = ({ setMobileMenu, mobileMenuState, isClosed }) => {
>
<ThemeToggle
css={{
display: 'flex',
display: "flex",
position: "fixed",
zIndex: "$page",
[customNotSmBreakpoint]: {
Expand Down
2 changes: 1 addition & 1 deletion build.washingtonpost.com/components/styleHelpers.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const customNotSmBreakpoint = "@media (min-width:851px)";
export const customSmBreakpoint = "@media (max-width:850px)"
export const customSmBreakpoint = "@media (max-width:850px)";

0 comments on commit 63e8949

Please sign in to comment.