Added stats & SQL order by on get points

This commit is contained in:
2024-10-16 09:35:52 +02:00
parent 8bde354b71
commit 60a7570ca2
7 changed files with 137 additions and 7 deletions
+5 -5
View File
@@ -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}