Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
use hubs from const
Browse files Browse the repository at this point in the history
  • Loading branch information
kevoconnell committed Jun 28, 2024
1 parent bf6fd89 commit bcbe2f7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/[identifier]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Modal from '@/components/modal-component';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardHeader } from '@/components/ui/card';
import { hubs } from '@/constants';
import { useClipboard } from '@/hooks/useClipboard';
import { capitalizeNickname } from '@/lib/helpers';
import { fetchCastAndFidData } from '@/lib/utils';
Expand All @@ -14,12 +15,6 @@ interface ResponseProps {
params: { identifier: string };
}

const hubs = [
{ shortname: 'hoyt', url: 'https://hoyt.farcaster.xyz:2281' },
{ shortname: 'Neynar hub', url: 'https://hub-api.neynar.com' },
{ shortname: 'lamia', url: 'https://lamia.farcaster.xyz:2281' },
];

const isNumeric = (str: string): boolean => {
return !isNaN(Number(str)) && !isNaN(parseFloat(str)) && !/^0x/.test(str);
};
Expand Down

0 comments on commit bcbe2f7

Please sign in to comment.