Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Habib/blog subscription customerio form #1925

Merged
25 commits merged into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ typings/

# dotenv environment variables file
.env
.env.development

# gatsby files
.cache/
Expand All @@ -68,9 +69,6 @@ yarn-error.log
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

Expand Down
7 changes: 7 additions & 0 deletions src/common/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const validation = {
return null
}
},
name: (input, message) => {
if (!input) {
return message ? message : localize('Name is required')
} else {
return null
}
},
required: (input, message) => {
if (!input) {
return message ? message : localize('This field is required')
Expand Down
1 change: 1 addition & 0 deletions src/components/custom/_agreement-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const AgreementLabel = ({ handleChangeCheckbox, isChecked, color }) => {
translate_text="I agree to the <0>terms and conditions</0>"
components={[
<LinkText
className="link-text"
key={0}
href={url}
target="_blank"
Expand Down
6 changes: 6 additions & 0 deletions src/pages/blog/articles/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import Subscribe from '../components/_subscribe'
import AllArticles from './_all-articles'
import { article_data } from './_data'
import Layout from 'components/layout/layout'
Expand Down Expand Up @@ -67,6 +68,11 @@ const ArticlesPage = () => (
</SmallContainer>
</Hero>
<AllArticles article_data={article_data} />
<Container>
<Flex direction="column" ai="flex-start" jc="space-between">
<Subscribe />
</Flex>
</Container>
</Layout>
)

Expand Down
Loading