diff --git a/apps/rewards-dashboard/index.html b/apps/rewards-dashboard/index.html index 0826b2190..c66b65efc 100644 --- a/apps/rewards-dashboard/index.html +++ b/apps/rewards-dashboard/index.html @@ -8,7 +8,6 @@
diff --git a/apps/rewards-dashboard/package-lock.json b/apps/rewards-dashboard/package-lock.json index f2094b4d2..4c8d3b1c1 100644 --- a/apps/rewards-dashboard/package-lock.json +++ b/apps/rewards-dashboard/package-lock.json @@ -12,6 +12,7 @@ "@gfxlabs/oku-chains": "^0.0.19", "@lingui/macro": "^4.6.0", "@lingui/react": "^4.6.0", + "@swc/core": "1.3.105", "@tanstack/react-query": "^5.15.4", "@uidotdev/usehooks": "^2.4.1", "@web3modal/wagmi": "^3.5.0", @@ -23,7 +24,7 @@ }, "devDependencies": { "@lingui/cli": "^4.6.0", - "@lingui/swc-plugin": "^4.0.4", + "@lingui/swc-plugin": "^4.0.6", "@lingui/vite-plugin": "^4.6.0", "@tailwindcss/typography": "^0.5.10", "@types/node": "^20.10.5", @@ -1769,9 +1770,9 @@ } }, "node_modules/@lingui/swc-plugin": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@lingui/swc-plugin/-/swc-plugin-4.0.4.tgz", - "integrity": "sha512-xRnR96Mqi6zwGlVfGJMfoM8QykBbUz/sSnwmcFL9BZ8Y9YBZxzLAVf4t1BbiIQsAs+pMYu/HfujTBD4y/r1ucA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@lingui/swc-plugin/-/swc-plugin-4.0.6.tgz", + "integrity": "sha512-jW32d+t/faHGrgzZXzGbDmadElqHQ9FvGf2aoq7YelXBPG9cf/lAkZlpxNjAzRhbscupB0YPtBjC49XoIIzKMg==", "dev": true, "peerDependencies": { "@lingui/macro": "4" @@ -2788,10 +2789,9 @@ } }, "node_modules/@swc/core": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.101.tgz", - "integrity": "sha512-w5aQ9qYsd/IYmXADAnkXPGDMTqkQalIi+kfFf/MHRKTpaOL7DHjMXwPp/n8hJ0qNjRvchzmPtOqtPBiER50d8A==", - "dev": true, + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.105.tgz", + "integrity": "sha512-me2VZyr3OjqRpFrYQJJYy7x/zbFSl9nt+MAGnIcBtjDsN00iTVqEaKxBjPBFQV9BDAgPz2SRWes/DhhVm5SmMw==", "hasInstallScript": true, "dependencies": { "@swc/counter": "^0.1.1", @@ -2805,16 +2805,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.101", - "@swc/core-darwin-x64": "1.3.101", - "@swc/core-linux-arm-gnueabihf": "1.3.101", - "@swc/core-linux-arm64-gnu": "1.3.101", - "@swc/core-linux-arm64-musl": "1.3.101", - "@swc/core-linux-x64-gnu": "1.3.101", - "@swc/core-linux-x64-musl": "1.3.101", - "@swc/core-win32-arm64-msvc": "1.3.101", - "@swc/core-win32-ia32-msvc": "1.3.101", - "@swc/core-win32-x64-msvc": "1.3.101" + "@swc/core-darwin-arm64": "1.3.105", + "@swc/core-darwin-x64": "1.3.105", + "@swc/core-linux-arm-gnueabihf": "1.3.105", + "@swc/core-linux-arm64-gnu": "1.3.105", + "@swc/core-linux-arm64-musl": "1.3.105", + "@swc/core-linux-x64-gnu": "1.3.105", + "@swc/core-linux-x64-musl": "1.3.105", + "@swc/core-win32-arm64-msvc": "1.3.105", + "@swc/core-win32-ia32-msvc": "1.3.105", + "@swc/core-win32-x64-msvc": "1.3.105" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -2826,13 +2826,12 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.101.tgz", - "integrity": "sha512-mNFK+uHNPRXSnfTOG34zJOeMl2waM4hF4a2NY7dkMXrPqw9CoJn4MwTXJcyMiSz1/BnNjjTCHF3Yhj0jPxmkzQ==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.105.tgz", + "integrity": "sha512-buWeweLVDXXmcnfIemH4PGnpjwsDTUGitnPchdftb0u1FU8zSSP/lw/pUCBDG/XvWAp7c/aFxgN4CyG0j7eayA==", "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -2842,13 +2841,12 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.101.tgz", - "integrity": "sha512-B085j8XOx73Fg15KsHvzYWG262bRweGr3JooO1aW5ec5pYbz5Ew9VS5JKYS03w2UBSxf2maWdbPz2UFAxg0whw==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.105.tgz", + "integrity": "sha512-hFmXPApqjA/8sy/9NpljHVaKi1OvL9QkJ2MbbTCCbJERuHMpMUeMBUWipHRfepGHFhU+9B9zkEup/qJaJR4XIg==", "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -2858,13 +2856,12 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.101.tgz", - "integrity": "sha512-9xLKRb6zSzRGPqdz52Hy5GuB1lSjmLqa0lST6MTFads3apmx4Vgs8Y5NuGhx/h2I8QM4jXdLbpqQlifpzTlSSw==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.105.tgz", + "integrity": "sha512-mwXyMC41oMKkKrPpL8uJpOxw7fyfQoVtIw3Y5p0Blabk+espNYqix0E8VymHdRKuLmM//z5wVmMsuHdGBHvZeg==", "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -2874,13 +2871,12 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.101.tgz", - "integrity": "sha512-oE+r1lo7g/vs96Weh2R5l971dt+ZLuhaUX+n3BfDdPxNHfObXgKMjO7E+QS5RbGjv/AwiPCxQmbdCp/xN5ICJA==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.105.tgz", + "integrity": "sha512-H7yEIVydnUtqBSUxwmO6vpIQn7j+Rr0DF6ZOORPyd/SFzQJK9cJRtmJQ3ZMzlJ1Bb+1gr3MvjgLEnmyCYEm2Hg==", "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -2890,13 +2886,12 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.101.tgz", - "integrity": "sha512-OGjYG3H4BMOTnJWJyBIovCez6KiHF30zMIu4+lGJTCrxRI2fAjGLml3PEXj8tC3FMcud7U2WUn6TdG0/te2k6g==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.105.tgz", + "integrity": "sha512-Jg7RTFT3pGFdGt5elPV6oDkinRy7q9cXpenjXnJnM2uvx3jOwnsAhexPyCDHom8SHL0j+9kaLLC66T3Gz1E4UA==", "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -2906,13 +2901,12 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.101.tgz", - "integrity": "sha512-/kBMcoF12PRO/lwa8Z7w4YyiKDcXQEiLvM+S3G9EvkoKYGgkkz4Q6PSNhF5rwg/E3+Hq5/9D2R+6nrkF287ihg==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.105.tgz", + "integrity": "sha512-DJghplpyusAmp1X5pW/y93MmS/u83Sx5GrpJxI6KLPa82+NItTgMcl8KBQmW5GYAJpVKZyaIvBanS5TdR8aN2w==", "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -2922,13 +2916,12 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.101.tgz", - "integrity": "sha512-kDN8lm4Eew0u1p+h1l3JzoeGgZPQ05qDE0czngnjmfpsH2sOZxVj1hdiCwS5lArpy7ktaLu5JdRnx70MkUzhXw==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.105.tgz", + "integrity": "sha512-wD5jL2dZH/5nPNssBo6jhOvkI0lmWnVR4vnOXWjuXgjq1S0AJpO5jdre/6pYLmf26hft3M42bteDnjR4AAZ38w==", "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -2938,13 +2931,12 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.101.tgz", - "integrity": "sha512-9Wn8TTLWwJKw63K/S+jjrZb9yoJfJwCE2RV5vPCCWmlMf3U1AXj5XuWOLUX+Rp2sGKau7wZKsvywhheWm+qndQ==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.105.tgz", + "integrity": "sha512-UqJtwILUHRw2+3UTPnRkZrzM/bGdQtbR4UFdp79mZQYfryeOUVNg7aJj/bWUTkKtLiZ3o+FBNrM/x2X1mJX5bA==", "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -2954,13 +2946,12 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.101.tgz", - "integrity": "sha512-onO5KvICRVlu2xmr4//V2je9O2XgS1SGKpbX206KmmjcJhXN5EYLSxW9qgg+kgV5mip+sKTHTAu7IkzkAtElYA==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.105.tgz", + "integrity": "sha512-Z95C6vZgBEJ1snidYyjVKnVWiy/ZpPiIFIXGWkDr4ZyBgL3eZX12M6LzZ+NApHKffrbO4enbFyFomueBQgS2oA==", "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "win32" @@ -2970,13 +2961,12 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.101", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.101.tgz", - "integrity": "sha512-T3GeJtNQV00YmiVw/88/nxJ/H43CJvFnpvBHCVn17xbahiVUOPOduh3rc9LgAkKiNt/aV8vU3OJR+6PhfMR7UQ==", + "version": "1.3.105", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.105.tgz", + "integrity": "sha512-3J8fkyDPFsS3mszuYUY4Wfk7/B2oio9qXUwF3DzOs2MK+XgdyMLIptIxL7gdfitXJBH8k39uVjrIw1JGJDjyFA==", "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -2988,14 +2978,12 @@ "node_modules/@swc/counter": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.2.tgz", - "integrity": "sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==", - "dev": true + "integrity": "sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==" }, "node_modules/@swc/types": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", - "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", - "dev": true + "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==" }, "node_modules/@tailwindcss/typography": { "version": "0.5.10", diff --git a/apps/rewards-dashboard/package.json b/apps/rewards-dashboard/package.json index f9f2bc156..4a8ca5def 100644 --- a/apps/rewards-dashboard/package.json +++ b/apps/rewards-dashboard/package.json @@ -18,6 +18,7 @@ "@gfxlabs/oku-chains": "^0.0.19", "@lingui/macro": "^4.6.0", "@lingui/react": "^4.6.0", + "@swc/core": "1.3.105", "@tanstack/react-query": "^5.15.4", "@uidotdev/usehooks": "^2.4.1", "@web3modal/wagmi": "^3.5.0", @@ -29,7 +30,7 @@ }, "devDependencies": { "@lingui/cli": "^4.6.0", - "@lingui/swc-plugin": "^4.0.4", + "@lingui/swc-plugin": "^4.0.6", "@lingui/vite-plugin": "^4.6.0", "@tailwindcss/typography": "^0.5.10", "@types/node": "^20.10.5", diff --git a/apps/rewards-dashboard/src/App.tsx b/apps/rewards-dashboard/src/App.tsx index c5bf3787c..e78709f40 100644 --- a/apps/rewards-dashboard/src/App.tsx +++ b/apps/rewards-dashboard/src/App.tsx @@ -1,21 +1,56 @@ +import { useState } from "react"; import "./App.css"; import { Background } from "./components/Background"; import { Footer } from "./components/Footer"; import { Header } from "./components/Header"; import { DashboardLayout } from "./layouts/DashboardLayout"; import { AppProvider } from "./providers"; +import { Trans } from "@lingui/macro"; +import { RxCross1 } from "react-icons/rx"; function App() { + const [hideModal, setHideModal] = useState(false); return ( <>
+