Skip to content

Commit

Permalink
fix: lint errors (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomictangerine authored May 2, 2023
1 parent 0ffb9ca commit af652a9
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions build.washingtonpost.com/pages/resources/[category]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,30 +85,34 @@ export const getStaticProps = async ({ params }) => {
const navigation = await getNavigation();

const lookupTable = {
"workshops": {
description: "Sharpen your design and development skills with our in-depth recorded workshops.",
size: THUMBNAIL_WIDE
workshops: {
description:
"Sharpen your design and development skills with our in-depth recorded workshops.",
size: THUMBNAIL_WIDE,
},
"guides": {
description: "Explore the processes and tools we use in our step-by-step written guides.",
size: THUMBNAIL_SQUARE
guides: {
description:
"Explore the processes and tools we use in our step-by-step written guides.",
size: THUMBNAIL_SQUARE,
},
"tutorials": {
description: "Watch or read through our tutorials to understand key techniques and concepts.",
size: THUMBNAIL_WIDE
tutorials: {
description:
"Watch or read through our tutorials to understand key techniques and concepts.",
size: THUMBNAIL_WIDE,
},
"accessibility": {
description: "Explore our accessibility checklist, testing strategies and considerations. Contact accessibility@washpost.com with any questions, ideas or feedback.",
size: THUMBNAIL_SQUARE
accessibility: {
description:
"Explore our accessibility checklist, testing strategies and considerations. Contact accessibility@washpost.com with any questions, ideas or feedback.",
size: THUMBNAIL_SQUARE,
},
tools: {
description: "",
size: THUMBNAIL_WIDE
}
}
size: THUMBNAIL_WIDE,
},
};

// populate props
const { description, size } = lookupTable[params.category]
const { description, size } = lookupTable[params.category];

return {
props: {
Expand Down

4 comments on commit af652a9

@vercel
Copy link

@vercel vercel bot commented on af652a9 May 2, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on af652a9 May 2, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

wpds-ui-kit-vitejs-example – ./apps/vite-project

wpds-ui-kit-vitejs-example.preview.now.washingtonpost.com
wpds-ui-kit-vitejs-example-git-main.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on af652a9 May 2, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

wpds-ui-kit – ./build.washingtonpost.com

wpds-ui-kit.preview.now.washingtonpost.com
build.washingtonpost.com
wpds-ui-kit-git-main.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on af652a9 May 2, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

wpds-ui-kit-storybook – ./

wpds-ui-kit-storybook.preview.now.washingtonpost.com
wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com

Please sign in to comment.