From 769830c7dd4ed62f9f5d1029f8dff3cd71595791 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 30 Oct 2024 08:30:41 -0700 Subject: [PATCH] Fixed empty headings on paragraph types --- .eslintrc.json | 29 -- package.json | 6 +- .../stanford-entity/entity-paragraph.tsx | 2 +- .../stanford-lists/list-paragraph.tsx | 2 +- yarn.lock | 266 +++++++++--------- 5 files changed, 138 insertions(+), 167 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 2b1d85ea..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module", - "project": "./tsconfig.json" - }, - "extends": [ - "next/core-web-vitals", - "prettier", - "plugin:deprecation/recommended" - ], - "rules": { - "prettier/prettier": ["error"], - "@typescript-eslint/no-unused-vars": "off", - "unused-imports/no-unused-imports": "error", - "unused-imports/no-unused-vars": [ - "error", - { "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" } - ], - "no-console": ["error", { "allow": ["warn", "error"] }], - "no-restricted-syntax": [ - "error", - "Literal[value=/text-m[\\d]/i]" - ] - }, - "plugins": ["prettier", "unused-imports"], - "ignorePatterns": ["**/__generated__/**/*"] -} \ No newline at end of file diff --git a/package.json b/package.json index 4cecdf00..9a5a684b 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ }, "dependencies": { "@heroicons/react": "^2.1.5", - "@mui/base": "5.0.0-beta.60", + "@mui/base": "5.0.0-beta.61", "@next/third-parties": "15.0.2", "@tailwindcss/container-queries": "^0.1.1", - "@types/node": "22.8.2", + "@types/node": "22.8.4", "@types/react": "18.3.12", "@types/react-dom": "19.0.0-rc.1", - "algoliasearch": "^5.11.0", + "algoliasearch": "^5.12.0", "autoprefixer": "^10.4.20", "clsx": "^2.1.1", "decanter": "^7.3.0", diff --git a/src/components/paragraphs/stanford-entity/entity-paragraph.tsx b/src/components/paragraphs/stanford-entity/entity-paragraph.tsx index f24a353d..c46e4f2d 100644 --- a/src/components/paragraphs/stanford-entity/entity-paragraph.tsx +++ b/src/components/paragraphs/stanford-entity/entity-paragraph.tsx @@ -28,7 +28,7 @@ const EntityParagraph = async ({paragraph, ...props}: Props) => { className={twMerge("centered mb-20 flex flex-col gap-10 xl:max-w-[980px]", props.className)} aria-labelledby={EntityWrapper === "section" ? paragraph.id : undefined} > - {behaviors.stanford_teaser?.heading_behavior !== "remove" && ( + {paragraph.suEntityHeadline && behaviors.stanford_teaser?.heading_behavior !== "remove" && (

{ className={twMerge("centered mb-20 flex flex-col gap-10 xl:max-w-[980px]", props.className)} aria-labelledby={ListWrapper === "section" ? paragraph.id : undefined} > - {behaviors.list_paragraph?.heading_behavior !== "remove" && ( + {paragraph.suListHeadline && behaviors.list_paragraph?.heading_behavior !== "remove" && (