This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import parse from 'html-react-parser'; | |
| import React from 'react'; | |
| export interface PostSummaryProps { | |
| post: any; | |
| } | |
| export function PostSummary({ post }: PostSummaryProps) { | |
| return ( | |
| <> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Card, | |
| CardActionArea, | |
| CardContent, | |
| CardMedia, | |
| styled, | |
| Typography, | |
| } from '@material-ui/core'; | |
| import parse from 'html-react-parser'; | |
| import React from 'react'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Grid } from '@material-ui/core'; | |
| import { BlogPost, PostSummary } from '@nx-gatsby-blogs/ui'; | |
| import { graphql } from 'gatsby'; | |
| import React from 'react'; | |
| import { | |
| BlogPostArchivePropsData, | |
| transformBlogPostArchivePropsDataToBlogPosts, | |
| } from './models/blog-post-archive-props-data'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require(`path`); | |
| const chunk = require(`lodash/chunk`); | |
| const postsPerPage = 6; | |
| /** | |
| * This function queries Gatsby's GraphQL server and asks for | |
| * All WordPress blog posts. If there are any GraphQL error it throws an error | |
| * Otherwise it will return the posts 🙌 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Display blog posts with pagination | |
| */ | |
| import { Box, Grid } from '@material-ui/core'; | |
| import { Pagination, PaginationItem } from '@material-ui/lab'; | |
| import { BlogPost, PostSummary } from '@nx-gatsby-blogs/ui'; | |
| import { graphql, Link } from 'gatsby'; | |
| import React from 'react'; | |
| import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| AdhZodiacSignItem, | |
| AdhZodiacSignList, | |
| } from '@aztro-daily-horoscope/models'; | |
| import React from 'react'; | |
| import { FlatList } from 'react-native'; | |
| import { ListItem } from '@rneui/base'; | |
| import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; | |
| export function ZodiacSignList() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { initialHoroscopeState } from '../horoscope/horoscope.slice'; | |
| import { RootState } from './root-state.interface'; | |
| export const initialRootState: RootState = { | |
| horoscope: initialHoroscopeState | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| AdhZodiacSignItem, | |
| AdhZodiacSignList, | |
| } from '@aztro-daily-horoscope/models'; | |
| import React from 'react'; | |
| import { FlatList } from 'react-native'; | |
| import { ListItem } from '@rneui/base'; | |
| import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; | |
| import { connect } from 'react-redux'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { AdhZodiacSign } from './zodiac-sign.enum'; | |
| export interface AdhZodiacSignItem { | |
| icon: string; | |
| zodiacSign: AdhZodiacSign; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| AdhZodiacSignItem, | |
| } from '@aztro-daily-horoscope/models'; | |
| export interface HoroscopeState { | |
| zodiacSignItem?: AdhZodiacSignItem; | |
| } |