Unverified Commit 2411a625 authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

chore(examples): move `app` directories (#42094)

parent 90f0f72c
...@@ -9,7 +9,7 @@ jest.mock('./counterAPI', () => ({ ...@@ -9,7 +9,7 @@ jest.mock('./counterAPI', () => ({
), ),
})) }))
import { makeStore } from '../../app/store' import { makeStore } from '../../store'
import Counter from './Counter' import Counter from './Counter'
describe('<Counter />', () => { describe('<Counter />', () => {
......
import { useState } from 'react' import { useState } from 'react'
import { useAppSelector, useAppDispatch } from '../../app/hooks' import { useAppSelector, useAppDispatch } from '../../hooks'
import { import {
decrement, decrement,
increment, increment,
......
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit' import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
import type { AppState, AppThunk } from '../../app/store' import type { AppState, AppThunk } from '../../store'
import { fetchCount } from './counterAPI' import { fetchCount } from './counterAPI'
export interface CounterState { export interface CounterState {
......
...@@ -3,7 +3,7 @@ import '../styles/globals.css' ...@@ -3,7 +3,7 @@ import '../styles/globals.css'
import { Provider } from 'react-redux' import { Provider } from 'react-redux'
import type { AppProps } from 'next/app' import type { AppProps } from 'next/app'
import store from '../app/store' import store from '../store'
export default function MyApp({ Component, pageProps }: AppProps) { export default function MyApp({ Component, pageProps }: AppProps) {
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment