Skip to content

Commit

Permalink
Merge pull request #44 from appKom/AddMoney
Browse files Browse the repository at this point in the history
Temp solution to #8. Modified manifest for PWA
  • Loading branch information
keithcharlene authored Feb 9, 2022
2 parents 2703285 + 460c067 commit 22f494c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
Binary file added public/Online_bla_o.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 4 additions & 14 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Nibble App",
"name": "Nibble App",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"src": "Online_bla_o.png",
"type": "image/png",
"sizes": "512x512"
"sizes": "167x167"
}
],
"start_url": ".",
Expand Down
6 changes: 5 additions & 1 deletion src/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const Profile = () => {
window.location.reload();
};

const addMoney = () => {
window.open('https://online.ntnu.no/payments/wallet', '_blank');
};

return (
<Page>
<Box
Expand All @@ -41,7 +45,7 @@ const Profile = () => {
)}
</Box>
<Box>
<Button w="100%" onClick={() => console.log('TODO')}>
<Button w="100%" onClick={addMoney}>
Fyll på mer penger
</Button>
<Box paddingTop={4}></Box>
Expand Down

0 comments on commit 22f494c

Please sign in to comment.