Skip to content

Commit

Permalink
Merge branch 'main' into 1587-error-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Ross committed Mar 5, 2024
2 parents ac17a7b + fbf6909 commit 00139a4
Show file tree
Hide file tree
Showing 4 changed files with 598 additions and 561 deletions.
8 changes: 4 additions & 4 deletions components/filter/clients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const ClientsFilter = ({ clients, categories }: ClientsFilterProps) => {
if (selected === -1) return clients;

const category = categories[selected];
return clients.filter(
(client) => client.categories?.find((c) => c.category.name === category)
return clients.filter((client) =>
client.categories?.find((c) => c.category.name === category)
);
}, [clients, selected, categories]);

Expand All @@ -32,8 +32,8 @@ export const ClientsFilter = ({ clients, categories }: ClientsFilterProps) => {
setSelected,
options: categories.map((category) => ({
label: category,
count: clients.filter(
(client) => client.categories?.find((c) => c.category.name === category)
count: clients.filter((client) =>
client.categories?.find((c) => c.category.name === category)
).length,
})),
allText: "All SSW Clients",
Expand Down
4 changes: 2 additions & 2 deletions helpers/getTestimonials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const getTestimonialsExcludingCategories = async (
categoryName: string;
}[]
): Promise<TestimonialType[]> => {
const categoryListToExclude = categoryRoutePaths?.map(
(category) => extractFileName(category?.categoryName)?.toLowerCase()
const categoryListToExclude = categoryRoutePaths?.map((category) =>
extractFileName(category?.categoryName)?.toLowerCase()
);

const testimonialsResult = testimonialList.testimonials
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@next/eslint-plugin-next": "14.1.0",
"@playwright/test": "1.41.2",
"@playwright/test": "1.42.1",
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
Expand All @@ -27,20 +27,20 @@
"@types/node": "^20.8.7",
"@types/react": "^18.2.55",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.18.0",
"autoprefixer": "^10.4.17",
"@typescript-eslint/parser": "^7.1.0",
"autoprefixer": "^10.4.18",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tailwindcss": "^3.14.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"next-sitemap": "^4.2.3",
"playwright": "1.41.2",
"playwright": "1.42.1",
"postcss": "^8.4.35",
"postcss-import": "^15.1.0",
"postcss-nesting": "^12.0.2",
"prettier": "3.1.1",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"source-map-explorer": "^2.5.3",
"ts-node": "^10.9.2"
Expand All @@ -62,10 +62,10 @@
"classnames": "^2.3.2",
"dayjs": "^1.11.10",
"dotenv": "^16.4.4",
"eslint-config-next": "14.1.1",
"eslint-config-next": "14.1.2",
"formik": "^2.4.5",
"keyboardjs": "^2.7.0",
"next": "14.1.1",
"next": "14.1.2",
"next-seo": "^6.4.0",
"nextjs-breadcrumbs2": "^2.0.4",
"node-cache": "^5.1.2",
Expand All @@ -79,7 +79,7 @@
"react-responsive-carousel": "^3.2.23",
"react-responsive-modal": "^6.4.2",
"react-toastify": "^10.0.4",
"react-tooltip": "^5.25.1",
"react-tooltip": "^5.26.3",
"react-use": "^17.5.0",
"schema-dts": "^1.1.2",
"sharp": "^0.33.2",
Expand Down
Loading

0 comments on commit 00139a4

Please sign in to comment.