Skip to content

Commit

Permalink
fully typify
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed May 18, 2023
1 parent 23721d9 commit 1183f33
Show file tree
Hide file tree
Showing 22 changed files with 117 additions and 515 deletions.
2 changes: 1 addition & 1 deletion packages/explorer-ui/components/Error/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExclamationIcon } from '@heroicons/react/outline';

interface ErrorProps {
text: string;
param: string;
param: string | string[];
subtitle?: string;
}

Expand Down
4 changes: 4 additions & 0 deletions packages/explorer-ui/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Link from 'next/link'
export function Pagination({}) {
const router = useRouter()
let { p } = router.query
// @ts-ignore
p = p ?? 1

return (
Expand All @@ -20,16 +21,19 @@ export function Pagination({}) {
query: { ...router.query, p: 1 },
}}
scroll={false}
// @ts-ignore
className={p === 1 ? `pointer-events-none opacity-50` : ''}
>
<ChevronDoubleLeftIcon className="w-5 h-5" strokeWidth={1} />
</Link>
<Link
href={{
pathname: router.basePath,
// @ts-ignore
query: { ...router.query, p: p - 1 },
}}
scroll={false}
// @ts-ignore
className={p === 1 ? `pointer-events-none opacity-50` : ''}
>
<ChevronLeftIcon className="w-5 h-5" strokeWidth={1} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react';

interface StandardPageContainerProps {
title: string;
title?: string;
subtitle?: string;
children: ReactNode;
rightContent?: ReactNode;
Expand Down

This file was deleted.

89 changes: 0 additions & 89 deletions packages/explorer-ui/components/pages/Leaderboard/LeaderCard.tsx

This file was deleted.

62 changes: 0 additions & 62 deletions packages/explorer-ui/components/pages/Leaderboard/TopChains.tsx

This file was deleted.

72 changes: 0 additions & 72 deletions packages/explorer-ui/components/pages/Leaderboard/TopTokens.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions packages/explorer-ui/components/pages/Leaderboard/constants.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions packages/explorer-ui/components/pages/Leaderboard/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/explorer-ui/components/tailwind/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default function Grid({

if (gap ?? false) {
if (Number.isInteger(gap)) {
novelClassName += GAP_LOOKUP[gap];
novelClassName += GAP_LOOKUP[String(gap)];
} else {
for (const [screenSize, gapSize] of (gap as Array<number>).entries()) {
novelClassName += SIZE_GAP_LOOKUP[screenSize][gapSize];
Expand Down
Loading

0 comments on commit 1183f33

Please sign in to comment.