Skip to content

Commit

Permalink
Move universal profile type
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolmin committed Oct 27, 2023
1 parent e6a46ea commit 5aea576
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
11 changes: 11 additions & 0 deletions types/api/universalProfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type UPResponse = {
type: string;
LSP3Profile: {
name: string;
profileImage: {
[key: number]: {
url: string;
};
};
};
}
14 changes: 2 additions & 12 deletions ui/shared/entities/address/IdenticonUniversalProfileQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@ import { Box } from '@chakra-ui/react';
import { useQueryClient } from '@tanstack/react-query';
import React, { useEffect, useState } from 'react';

import type { UPResponse } from '../../../../types/api/universalProfile';

import { getEnvValue } from '../../../../configs/app/utils';

interface Props {
address: string;
fallbackIcon: JSX.Element;
}

type UPResponse = {
type: string;
LSP3Profile: {
name: string;
profileImage: {
[key: number]: {
url: string;
};
};
};
}

export const IdenticonUniversalProfile: React.FC<Props> = ({ address, fallbackIcon }) => {
const [ up, setUp ] = useState({} as UPResponse);
const queryClient = useQueryClient();
Expand Down

0 comments on commit 5aea576

Please sign in to comment.