Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyanze committed May 1, 2022
1 parent b8b8c8f commit 3deb416
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ description: Just a post page that displays demo components
hero: images/demo_1.jpg
slug: posts/gatsby-plugin-options
---
```

## Adding Site Pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const AuthorPosts: React.FC<AuthorPostsProps> = ({
export default AuthorPosts

export const pageQuery = graphql`
query($limit: Int!, $skip: Int!, $authorId: String!) {
query ($limit: Int!, $skip: Int!, $authorId: String!) {
allMdx(
sort: { fields: [frontmatter___date], order: DESC }
filter: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const CategoryPosts: React.FC<CategoryPostsProps> = ({
export default CategoryPosts

export const pageQuery = graphql`
query($limit: Int!, $skip: Int!, $category: String!) {
query ($limit: Int!, $skip: Int!, $category: String!) {
allMdx(
sort: { fields: [frontmatter___date], order: DESC }
filter: {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-pitayan/src/templates/post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const Post: React.FC<PostProps> = ({
}

export const pageQuery = graphql`
query($slug: String!) {
query ($slug: String!) {
mdx(fields: { slug: { eq: $slug } }) {
body
timeToRead
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-pitayan/src/templates/site/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Site: React.FC<SiteProps> = ({ data }: any) => {
}

export const pageQuery = graphql`
query($slug: String!) {
query ($slug: String!) {
mdx(fields: { slug: { eq: $slug } }) {
body
frontmatter {
Expand Down
3 changes: 2 additions & 1 deletion packages/gatsby-theme-pitayan/src/utils/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import jsonp from "jsonp"

// Refers to
// https://github.com/manishsaraan/email-validator/blob/master/index.js
const _tester = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/
const _tester =
/^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/
export const validateEmail = (input: string): boolean => {
if (!input) return false

Expand Down

0 comments on commit 3deb416

Please sign in to comment.