Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2411a625
Unverified
Commit
2411a625
authored
Oct 28, 2022
by
Balázs Orbán
Committed by
GitHub
Oct 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(examples): move `app` directories (#42094)
parent
90f0f72c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
4 deletions
+4
-4
Counter.spec.tsx
examples/with-redux/src/features/counter/Counter.spec.tsx
+1
-1
Counter.tsx
examples/with-redux/src/features/counter/Counter.tsx
+1
-1
counterSlice.ts
examples/with-redux/src/features/counter/counterSlice.ts
+1
-1
hooks.ts
examples/with-redux/src/hooks.ts
+0
-0
_app.tsx
examples/with-redux/src/pages/_app.tsx
+1
-1
store.ts
examples/with-redux/src/store.ts
+0
-0
No files found.
examples/with-redux/src/features/counter/Counter.spec.tsx
View file @
2411a625
...
@@ -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 />'
,
()
=>
{
...
...
examples/with-redux/src/features/counter/Counter.tsx
View file @
2411a625
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
,
...
...
examples/with-redux/src/features/counter/counterSlice.ts
View file @
2411a625
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
{
...
...
examples/with-redux/src/
app/
hooks.ts
→
examples/with-redux/src/hooks.ts
View file @
2411a625
File moved
examples/with-redux/src/pages/_app.tsx
View file @
2411a625
...
@@ -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
(
...
...
examples/with-redux/src/
app/
store.ts
→
examples/with-redux/src/store.ts
View file @
2411a625
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment