-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8d2734
commit dda2620
Showing
10 changed files
with
621 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ | |
"test": "react-scripts test", | ||
"eject": "react-scripts eject", | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build" | ||
"build-storybook": "storybook build", | ||
"chromatic": "npx chromatic --project-token=chpt_0323dbd0cc46e9a" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
|
@@ -66,9 +67,12 @@ | |
"@storybook/react-webpack5": "^7.3.2", | ||
"@storybook/testing-library": "^0.2.0", | ||
"babel-plugin-named-exports-order": "^0.0.2", | ||
"chromatic": "^7.2.0", | ||
"eslint-plugin-storybook": "^0.6.13", | ||
"prop-types": "^15.8.1", | ||
"storybook": "^7.3.2", | ||
"webpack": "^5.88.2" | ||
} | ||
}, | ||
"readme": "ERROR: No README data found!", | ||
"_id": "[email protected]" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { useState } from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
import { useToken } from '../../hooks/useToken'; | ||
import { useInView } from 'react-intersection-observer'; | ||
import { PageContainer } from '../../atoms/layouts/PageContainer'; | ||
import { ContentNothing, RewardContentContainer, RewardMainContainer, RewardTitle } from './RewardPage'; | ||
import RewardCategory from '../../components/rewardPage/RewardCategory'; | ||
|
||
const IncomePage = () => { | ||
const isDark = useSelector(state=>state.uiSetting.isDark); | ||
const accessToken = useSelector(state=>state.loginInfo.accessToken); | ||
const refreshToken = useToken(); | ||
const [ incomeList, setIncomeList ] = useState([]); | ||
const [ page, setPage ] = useState(1); | ||
const [ maxPage, setMaxPage ] = useState(10); | ||
const [ month, setMonth ] = useState(1); | ||
const [ loading, setLoading ] = useState(true); | ||
const [ ref, inView ] = useInView(); | ||
|
||
return ( | ||
<PageContainer isDark={isDark}> | ||
<RewardMainContainer isDark={isDark}> | ||
<RewardTitle isDark={isDark}>나의 활동</RewardTitle> | ||
<RewardCategory category='income'/> | ||
<RewardContentContainer> | ||
{ incomeList.length===0 && | ||
<ContentNothing isDark={isDark}>정산 내역이 없습니다.</ContentNothing> } | ||
</RewardContentContainer> | ||
</RewardMainContainer> | ||
</PageContainer> | ||
); | ||
}; | ||
|
||
export default IncomePage; |
This file contains 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
This file contains 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