Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ondřej Bazala
PV247
Commits
cfb15f90
Commit
cfb15f90
authored
Nov 28, 2021
by
Benjamín Balun
Browse files
current funds indicator added
parent
f57a14bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pages/Store.tsx
View file @
cfb15f90
import
{
Typography
}
from
'
antd
'
;
import
{
Button
,
Card
,
Col
,
Modal
,
Row
,
Typography
}
from
'
antd
'
;
import
{
DollarOutlined
,
QuestionCircleOutlined
}
from
'
@ant-design/icons
'
;
import
usePageTitle
from
'
../hooks/usePageTitle
'
;
import
{
useLoggedInUser
}
from
'
../hooks/useLoggedInUser
'
;
import
{
Loading
}
from
'
../utils/Loading
'
;
const
Store
=
()
=>
{
usePageTitle
(
'
Store
'
);
return
<
Typography
>
Store
</
Typography
>;
const
{
userData
}
=
useLoggedInUser
();
if
(
!
userData
)
{
return
<
Loading
/>;
}
return
(
<
div
style
=
{
{
textAlign
:
'
right
'
}
}
>
<
Typography
>
Current funds:
{
userData
?.
actualScore
}
<
DollarOutlined
/>
</
Typography
>
</
div
>
);
};
export
default
Store
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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