Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

feat: refine error message types (#6028)

authored by yoginth.com and committed by

GitHub 4404448f 0175be7b

+3 -6
+1 -4
apps/web/src/components/Shared/EmojiPicker/List.tsx
··· 40 40 return ( 41 41 <ErrorMessage 42 42 className="m-5" 43 - error={{ 44 - message: "Error while loading emojis", 45 - name: ERRORS.SomethingWentWrong 46 - }} 43 + error={{ message: "Error while loading emojis" }} 47 44 title={ERRORS.SomethingWentWrong} 48 45 /> 49 46 );
+1 -1
apps/web/src/components/Shared/Post/PostFeed.tsx
··· 7 7 interface PostFeedProps<T extends { id: string }> { 8 8 items: T[]; 9 9 loading?: boolean; 10 - error?: unknown; 10 + error?: { message?: string }; 11 11 hasMore?: boolean; 12 12 handleEndReached: () => Promise<void>; 13 13 emptyIcon: ReactNode;
+1 -1
apps/web/src/components/Shared/UI/ErrorMessage.tsx
··· 4 4 5 5 interface ErrorMessageProps { 6 6 className?: string; 7 - error?: any; 7 + error?: { message?: string }; 8 8 title?: string; 9 9 } 10 10