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 { AdhHoroscope, AdhZodiacSign } from '@aztro-daily-horoscope/models'; | |
| export interface AztroHoroscpeResponse { | |
| date_range: string; | |
| current_date: string; | |
| description: string; | |
| compatibility: string; | |
| mood: string; | |
| color: string; | |
| lucky_number: string; |
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
| export type AdhHoroscopeDay = 'today' | 'tomorrow' | 'yesterday'; |
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 { | |
| AdhHoroscope, | |
| AdhHoroscopeDay, | |
| AdhZodiacSign, | |
| } from '@aztro-daily-horoscope/models'; | |
| import { | |
| aztroService, | |
| transfromAztroHoroscpeResponseToAdhHoroscope, | |
| } from '@aztro-daily-horoscope/services'; | |
| import { PayloadAction } from '@reduxjs/toolkit'; |
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 { combineEpics } from 'redux-observable'; | |
| import { horoscopeEpics } from '../horoscope/horoscope.epics'; | |
| export const rootEpics = combineEpics(...horoscopeEpics); |
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 { | |
| AdhHoroscopeDay, | |
| AdhZodiacSign, | |
| } from '@aztro-daily-horoscope/models'; | |
| import { | |
| horoscopeActions, | |
| horoscopeSelectors, | |
| RootState, | |
| } from '@aztro-daily-horoscope/store'; | |
| import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit'; |
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 getWebpackConfig = require('@nrwl/react/plugins/webpack'); | |
| function getCustomWebpackConfig(webpackConfig) { | |
| const config = getWebpackConfig(webpackConfig); | |
| const isProduction = webpackConfig.mode === 'production'; | |
| if (!isProduction) { | |
| config.resolve.alias = { | |
| 'react-native': 'react-native-web', | |
| }; |
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 React, { FunctionComponent } from 'react'; | |
| import { TextField, Grid } from '@mui/material'; | |
| export const AddressForm: FunctionComponent = () => { | |
| return ( | |
| <form noValidate autoComplete="off"> | |
| <Grid container spacing={2}> | |
| <Grid item xs={12} sm={6}> | |
| <TextField label="First Name" variant="outlined" fullWidth /> | |
| </Grid> |
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 React, { FunctionComponent } from 'react'; | |
| import { Grid } from '@mui/material'; | |
| import { TextField } from 'formik-mui'; | |
| import { Field } from 'formik'; | |
| export const AddressForm: FunctionComponent = () => { | |
| return ( | |
| <Grid container spacing={2}> | |
| <Grid item xs={12} sm={6}> | |
| <Field |
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
| export interface AddressFormValues { | |
| firstName: string; | |
| lastName: string; | |
| addressLine1: string; | |
| addressLine2?: string; | |
| city: string; | |
| provinceState: string; | |
| country: string; | |
| zipPostalCode: string; | |
| } |
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 React, { FunctionComponent } from 'react'; | |
| import { Grid } from '@mui/material'; | |
| import { TextField } from 'formik-mui'; | |
| import { Field, FormikErrors, FormikTouched } from 'formik'; | |
| import { AddressFormValues } from './address-form-values.interface'; | |
| export interface AddressFormProps { | |
| formName: string; | |
| errors?: FormikErrors<AddressFormValues>; |