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
| // src/storybook/mocks/store.tsx | |
| import { | |
| initialRootState, | |
| RootState, | |
| } from '@studio-ghibli-search-engine/store'; | |
| import React from 'react'; | |
| import { Provider as StoreProvider } from 'react-redux'; | |
| import configureStore from 'redux-mock-store'; | |
| export const StoreDecorator = (story) => { |
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 { storiesOf } from '@storybook/react-native'; | |
| import { mockFilmEntity } from '@studio-ghibli-search-engine/models'; | |
| import React from 'react'; | |
| import { NavigationDecorator } from '../../../storybook/mocks/navigation'; | |
| import FilmListItem from './film-list-item'; | |
| storiesOf('FilmListItem', module) | |
| .addDecorator(NavigationDecorator) |
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
| // at apps/poetry-app/src/components/poem-of-the-day/poem-of-the-day.tsx | |
| import { PoemResponse, poetryService } from '@nx-expo-poetry/services'; | |
| import React, { useEffect, useState } from 'react'; | |
| import { | |
| Card, | |
| Title, | |
| Paragraph, | |
| Subheading, | |
| ActivityIndicator, | |
| } from 'react-native-paper'; |
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
| // at libs/services/src/models/poem-response.interface.ts | |
| export interface PoemResponse { | |
| title: string; | |
| author: string; | |
| lines: string[]; | |
| linecount: 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 from 'react'; | |
| import { SafeAreaView, ScrollView } from 'react-native'; | |
| import { Provider as PaperProvider } from 'react-native-paper'; | |
| import PoemOfTheDay from '../components/poem-of-the-day/poem-of-the-day'; | |
| const App = () => { | |
| return ( | |
| <PaperProvider> | |
| <SafeAreaView> |
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 { AnyAction, ThunkDispatch } from '@reduxjs/toolkit'; | |
| import { | |
| filmsActions, | |
| filmsSelectors, | |
| RootState, | |
| } from '@studio-ghibli-search-engine/store'; | |
| const mapStateToProps = (state: RootState) => { | |
| return { | |
| getFilm: (id: string) => filmsSelectors.selectFilmById(id)(state), |
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 { rootStore } from '@aztro-daily-horoscope/store'; | |
| import { | |
| ZodiacSignListContainer, | |
| HoroscopeCardContainer, | |
| } from '@aztro-daily-horoscope/ui'; | |
| import { NavigationContainer } from '@react-navigation/native'; | |
| import { createStackNavigator } from '@react-navigation/stack'; | |
| import * as React from 'react'; | |
| import { Provider } 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 { | |
| AdhHoroscope, | |
| AdhHoroscopeDay, | |
| AdhZodiacSign, | |
| AdhZodiacSignItem, | |
| } from '@aztro-daily-horoscope/models'; | |
| import { | |
| aztroService, | |
| transfromAztroHoroscpeResponseToAdhHoroscope, | |
| } from '@aztro-daily-horoscope/services'; |