✨ Added stats & SQL order by on get points
This commit is contained in:
@@ -22,7 +22,7 @@ import './styles.scss';
|
||||
|
||||
const Statistics = () => {
|
||||
const router = useRouter();
|
||||
const { userData } = useData();
|
||||
const { userData, stats } = useData();
|
||||
|
||||
const logout = () => {
|
||||
localStorage.clear();
|
||||
@@ -63,7 +63,7 @@ const Statistics = () => {
|
||||
<div className='statistics'>
|
||||
<div className='statistic'>
|
||||
<SlotCounter
|
||||
value={'00'}
|
||||
value={stats.week}
|
||||
startValue={'00'}
|
||||
startValueOnce
|
||||
dummyCharacterCount={10}
|
||||
@@ -74,7 +74,7 @@ const Statistics = () => {
|
||||
</div>
|
||||
<div className='statistic'>
|
||||
<SlotCounter
|
||||
value={'00'}
|
||||
value={stats.month}
|
||||
startValue={'00'}
|
||||
startValueOnce
|
||||
dummyCharacterCount={10}
|
||||
@@ -85,7 +85,7 @@ const Statistics = () => {
|
||||
</div>
|
||||
<div className='statistic'>
|
||||
<SlotCounter
|
||||
value={'00'}
|
||||
value={stats.year}
|
||||
startValue={'00'}
|
||||
startValueOnce
|
||||
dummyCharacterCount={10}
|
||||
@@ -96,7 +96,7 @@ const Statistics = () => {
|
||||
</div>
|
||||
<div className='statistic'>
|
||||
<SlotCounter
|
||||
value={'00'}
|
||||
value={stats.total}
|
||||
startValue={'00'}
|
||||
startValueOnce
|
||||
dummyCharacterCount={10}
|
||||
|
||||
Reference in New Issue
Block a user