gatsby-matrix-theme 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [8.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v8.0.3...v8.0.4) (2022-10-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added first module prop in new title component ([a4bf904](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a4bf904d7ab162391a1ed90bdb15f09c46fe4bfb))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([d904e26](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d904e266f07816badfa1ce10f10cbffc03bdab24))
10
+
1
11
  ## [8.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v8.0.2...v8.0.3) (2022-10-21)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -53,7 +53,7 @@ const TopList = ({
53
53
  <>
54
54
  {Title && (
55
55
  <div className={`${styles.tabsHeader} ${styles.titleAndTab}`}>
56
- <Title module={module} />
56
+ <Title isHomepageFirstModule={isHomepageFirstModule} module={module} />
57
57
  </div>
58
58
  )}
59
59
  {ModuleIntro && <ModuleIntro module={{ value: module.module_introduction }} />}
@@ -16,6 +16,7 @@ const Tabs = ({
16
16
  HeaderComp,
17
17
  headerClass = '',
18
18
  gtmClass = '',
19
+ isHomepageFirstModule = false,
19
20
  }) => {
20
21
  const showAllTabId = `${showAll}_0`;
21
22
  const [activeTab, setActiveTab] = useState(
@@ -36,7 +37,7 @@ const Tabs = ({
36
37
  <>
37
38
  <div className={tabHeaderClass}>
38
39
  <div className={styles.titleAndTab}>
39
- {Title && <Title module={module} />}
40
+ {Title && <Title isHomepageFirstModule={isHomepageFirstModule} module={module} />}
40
41
  {TabList && (
41
42
  <TabList
42
43
  siteName={siteName}
@@ -85,6 +86,7 @@ Tabs.propTypes = {
85
86
  module: PropTypes.shape({}),
86
87
  siteName: PropTypes.string,
87
88
  gtmClass: PropTypes.string,
89
+ isHomepageFirstModule: PropTypes.bool,
88
90
  };
89
91
 
90
92
  export default Tabs;
@@ -9,7 +9,7 @@ import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
9
9
  import styles from './title.module.scss';
10
10
  import { getDate } from '../../../../helpers/strings';
11
11
 
12
- const TabsTitle = ({ module }) => {
12
+ const TabsTitle = ({ module, isHomepageFirstModule }) => {
13
13
  const TitleTag = module?.module_title_tag
14
14
  ? `${module?.module_title_tag}`
15
15
  : module?.module_title
@@ -21,7 +21,7 @@ const TabsTitle = ({ module }) => {
21
21
  const titleText = module?.module_title || module?.title;
22
22
 
23
23
  return (
24
- <TitleTag className={styles.noTag}>
24
+ <TitleTag className={`${styles.noTag} ${isHomepageFirstModule ? styles.firstModule : ''}`}>
25
25
  {module?.module_title_tag ? <div className={styles.title}>{titleText}</div> : titleText}
26
26
  {showDate && (
27
27
  <span className={styles.toplistDate}>
@@ -34,6 +34,7 @@ const TabsTitle = ({ module }) => {
34
34
  };
35
35
 
36
36
  TabsTitle.propTypes = {
37
+ isHomepageFirstModule: PropTypes.bool,
37
38
  module: PropTypes.shape({
38
39
  title: PropTypes.string,
39
40
  module_title: PropTypes.string,