Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump packages and some little fixes #7

Merged
merged 4 commits into from Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions components/Data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9320,25 +9320,6 @@ export default function Data(props: any): JSX.Element {
>
<div className="fixed bottom-5 right-5 hidden lg:block opacity-70 hover:opacity-100 cursor-pointer ">
<div className="bg-gray-300 dark:bg-[#232323] px-6 py-2">
<div className="flex justify-end">
<Tippy content={"Close"} animation="scale" className="shadow-xl">
<div
className="p-1 hover:bg-[#2b2d31] hover:opacity-100 opacity-60 rounded-lg group-hover:block hidden w-[32px]"
onClick={() => {
document.getElementById("popup__1")?.remove();
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
className="fill-white cursor-pointer"
>
<path d="m6.3 19.6-1.85-1.9 5.675-5.7L4.45 6.25l1.85-1.9 5.725 5.75L17.7 4.35l1.85 1.9L13.875 12l5.675 5.7-1.85 1.9-5.675-5.75Z" />
</svg>
</div>
</Tippy>
</div>
<a
href="https://github.com/peterhanania/Discord-package"
target="_blank"
Expand All @@ -9356,6 +9337,26 @@ export default function Data(props: any): JSX.Element {
<span className="text-gray-900 dark:text-white font-bold">
Star this Repository
</span>
<div className="flex justify-end">
<Tippy content={"Close"} animation="scale" className="shadow-xl">
<div
className="ml-2 p-1 hover:bg-[#2b2d31] hover:opacity-100 opacity-60 rounded-lg group-hover:block hidden w-8"
onClick={(e) => {
e.preventDefault()
document.getElementById("popup__1")?.remove();
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24"
width="24"
className="fill-white cursor-pointer"
>
<path d="m6.3 19.6-1.85-1.9 5.675-5.7L4.45 6.25l1.85-1.9 5.725 5.75L17.7 4.35l1.85 1.9L13.875 12l5.675 5.7-1.85 1.9-5.675-5.75Z" />
</svg>
</div>
</Tippy>
</div>
</div>
<p className="text-gray-900 dark:text-white text-sm max-w-[200px] text-left">
Enjoying what you see? Star this repository on Github and follow
Expand Down
8 changes: 4 additions & 4 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export default function Header() {
{({ open }) => (
<>
<div className="mt-1 relative">
<Listbox.Button className="relative w-full cursor-pointer bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left sm:text-sm">
<Listbox.Button className="relative w-full cursor-pointer bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm pl-3 pr-10 py-2 text-left sm:text-sm">
<span className="flex items-center">
<Image
height={20}
Expand All @@ -408,7 +408,7 @@ export default function Header() {
alt=""
className="flex-shrink-0 h-6 w-6 rounded-full"
/>
<span className="ml-3 block truncate text-slate-900">
<span className="ml-3 block truncate text-slate-900 dark:text-white">
{selected.name}
</span>
</span>
Expand All @@ -427,7 +427,7 @@ export default function Header() {
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<Listbox.Options className="absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm ">
<Listbox.Options className="bg-white dark:bg-gray-800 z-10 absolute mt-1 max-h-60 w-full overflow-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm ">
{countries.map((country) => (
<Listbox.Option
key={country.id}
Expand Down Expand Up @@ -457,7 +457,7 @@ export default function Header() {
? "font-semibold"
: "font-normal",
"ml-3 block truncate",
"text-slate-900"
"text-slate-900 dark:text-white"
)}
>
{country.name}
Expand Down
8 changes: 4 additions & 4 deletions components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function Settings(): ReactElement {
{({ open }) => (
<>
<div className="mt-1 relative">
<Listbox.Button className="relative w-full cursor-pointer bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left sm:text-sm">
<Listbox.Button className="relative w-full cursor-pointer bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm pl-3 pr-10 py-2 text-left sm:text-sm">
<span className="flex items-center">
<Image
height={20}
Expand All @@ -137,7 +137,7 @@ export default function Settings(): ReactElement {
alt=""
className="flex-shrink-0 h-6 w-6 rounded-full"
/>
<span className="ml-3 block truncate text-slate-900">
<span className="ml-3 block truncate text-slate-900 dark:text-white">
{selected.name}
</span>
</span>
Expand All @@ -156,7 +156,7 @@ export default function Settings(): ReactElement {
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<Listbox.Options className="absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm ">
<Listbox.Options className="bg-white dark:bg-gray-800 absolute mt-1 max-h-60 w-full overflow-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm ">
{countries.map((country) => (
<Listbox.Option
key={country.id}
Expand Down Expand Up @@ -186,7 +186,7 @@ export default function Settings(): ReactElement {
? "font-semibold"
: "font-normal",
"ml-3 block truncate",
"text-slate-900"
"text-slate-900 dark:text-white"
)}
>
{country.name}
Expand Down
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"dependencies": {
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@headlessui/react": "^1.6.5",
"@headlessui/react": "^1.6.6",
"@heroicons/react": "^1.0.6",
"@mui/material": "^5.9.3",
"@tippyjs/react": "^4.2.6",
"@types/jest": "^28.1.6",
"@types/react-dom": "^18.0.6",
Expand All @@ -24,26 +25,26 @@
"highcharts": "^10.2.0",
"highcharts-react-official": "^3.1.0",
"moment": "^2.29.4",
"next": "^12.2.3",
"notistack": "^1.0.10",
"next": "^12.2.4",
"notistack": "^2.0.5",
"papaparse": "^5.3.2",
"random-words": "^1.2.0",
"rc-progress": "^3.4.0",
"react": "18.2.0",
"react-countup": "^6.3.0",
"react-dom": "18.2.0",
"react-toastify": "^9.0.5",
"react-toastify": "^9.0.8",
"snake-case": "^3.0.4"
},
"devDependencies": {
"@types/node": "^18.6.3",
"@types/node": "^18.6.4",
"@types/papaparse": "^5.3.3",
"@types/react": "^18.0.15",
"autoprefixer": "^10.4.7",
"eslint": "8.20.0",
"eslint-config-next": "12.2.3",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.6",
"@types/react": "^18.0.16",
"autoprefixer": "^10.4.8",
"eslint": "8.21.0",
"eslint-config-next": "12.2.4",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"typescript": "^4.7.4"
}
}