Skip to content

Commit 14d2931

Browse files
committed
fix(profile): resolve TS2304 build error by using CreatorProfileErrorState directly (#573)
1 parent e37ddcd commit 14d2931

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/pages/LandingPage.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,6 @@ const getCreatorListKey = (creator: Course) =>
232232

233233
type SortOption = 'featured' | 'price-asc' | 'price-desc' | 'supply-desc';
234234

235-
const CreatorProfileLoadError: React.FC<CreatorProfileLoadErrorProps> = ({
236-
onRetry,
237-
isRetrying,
238-
}) => (
239-
<CreatorProfileErrorState
240-
onRetry={onRetry}
241-
isRetrying={isRetrying}
242-
/>
243-
);
244-
245235
function LandingPage() {
246236
const [creators, setCreators] = useState<Course[]>([]);
247237
// Creators used for wallet holdings; kept separate from the marketplace
@@ -1275,7 +1265,7 @@ function LandingPage() {
12751265
minHeight={300}
12761266
>
12771267
{finalFetchError ? (
1278-
<CreatorProfileLoadError
1268+
<CreatorProfileErrorState
12791269
onRetry={handleRetryCreatorFetch}
12801270
isRetrying={isLoading}
12811271
/>

0 commit comments

Comments
 (0)