gatsby-core-theme 32.0.4 → 32.0.5
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,10 @@
|
|
|
1
|
+
## [32.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.4...v32.0.5) (2024-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add translation for newsletter ([5d92b06](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5d92b06755c0b3717a1b9af2c1701acf5b59e100))
|
|
7
|
+
|
|
1
8
|
## [32.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.3...v32.0.4) (2024-05-31)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
2
|
import { IoMdCheckmarkCircleOutline } from '@react-icons/all-files/io/IoMdCheckmarkCircleOutline';
|
|
3
|
-
|
|
3
|
+
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
4
|
+
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
4
5
|
import Modal from '~atoms/modal';
|
|
5
6
|
|
|
6
7
|
const index = ({
|
|
@@ -9,15 +10,18 @@ const index = ({
|
|
|
9
10
|
section: 'Now there are lots of extra goodies that are on their way to your inbox.',
|
|
10
11
|
footer: 'All the best and good luck in the casino world!',
|
|
11
12
|
},
|
|
12
|
-
}) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
{text.
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
}) => {
|
|
14
|
+
const { translations } = useContext(Context) || {};
|
|
15
|
+
return (
|
|
16
|
+
<Modal>
|
|
17
|
+
<IoMdCheckmarkCircleOutline color="green" title="Check Icon" />
|
|
18
|
+
<p>{translate(translations, 'newsletter_success_title', text.title)}</p>
|
|
19
|
+
<div>
|
|
20
|
+
{translate(translations, 'newsletter_success_section', text.section)}
|
|
21
|
+
<p>{translate(translations, 'newsletter_success_footer', text.footer)}</p>
|
|
22
|
+
</div>
|
|
23
|
+
</Modal>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
22
26
|
|
|
23
27
|
export default index;
|