File tree Expand file tree Collapse file tree
src/components/relay-dashboard/paid-subscribers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import { useResponsive } from '@app/hooks/useResponsive';
1414import usePaidSubscribers , { SubscriberProfile } from '@app/hooks/usePaidSubscribers' ;
1515import { Row , Col , Modal , Typography } from 'antd' ;
1616import { nip19 } from 'nostr-tools' ;
17- import { NDKUserProfile } from '@nostr-dev-kit/ndk-hooks' ;
1817import { useNDK } from '@nostr-dev-kit/ndk-hooks' ;
18+ import { convertNDKUserProfileToSubscriberProfile } from '@app/utils/utils' ;
1919import { UserOutlined } from '@ant-design/icons' ;
2020import { CreatorButton } from './avatar/SubscriberAvatar.styles' ;
2121const { Text } = Typography ;
@@ -91,14 +91,7 @@ export const PaidSubscribers: React.FC = () => {
9191 }
9292 }
9393 } ;
94- const convertNDKUserProfileToSubscriberProfile = ( pubkey : string , user : NDKUserProfile ) : SubscriberProfile => {
95- return {
96- pubkey,
97- name : user . name || '' ,
98- picture : user . picture || '' ,
99- about : user . about || '' ,
100- } ;
101- } ;
94+
10295 useEffect ( ( ) => {
10396 // Fetch profiles for test subscribers
10497 const fetchProfiles = async ( ) => {
You can’t perform that action at this time.
0 commit comments