Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Apr 15, 2024
1 parent 281283a commit e14b115
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/components/ui/badges/Snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ interface Props extends ButtonProps {
}

export default function Snapshot({ snapshotURL, mt }: Props) {
const url = snapshotURL.includes('testnet') ? snapshotURL : `https://snapshot.org/#${snapshotURL}`;
const url = snapshotURL.includes('testnet')
? snapshotURL
: `https://snapshot.org/#${snapshotURL}`;
return (
<Button
href={url}
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/DAO/loaders/snapshot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const defaultOptions: DefaultOptions = {
},
};

export const createClient = () => new ApolloClient({
export const createClient = () =>
new ApolloClient({
uri: 'https://hub.snapshot.org/graphql',
cache: new InMemoryCache(),
defaultOptions,
Expand Down
4 changes: 1 addition & 3 deletions src/hooks/DAO/loaders/snapshot/useSnapshotProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import useSnapshotSpaceName from './useSnapshotSpaceName';
import { createClient } from './';

export const useSnapshotProposals = () => {
const {
action,
} = useFractal();
const { action } = useFractal();
const daoSnapshotSpaceName = useSnapshotSpaceName();
const currentSnapshotURL = useRef<string | undefined>();
const client = useMemo(() => createClient(), []);
Expand Down

0 comments on commit e14b115

Please sign in to comment.