mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-06-06 00:29:30 +00:00
Fix lint and build
This commit is contained in:
parent
558fda9913
commit
3970d4583b
@ -1,6 +1,6 @@
|
||||
import { Placeholder } from "@codex-storage/marketplace-ui-components";
|
||||
import { CircleX } from "lucide-react";
|
||||
import React, { ErrorInfo, ReactNode } from "react";
|
||||
import React, { ReactNode } from "react";
|
||||
import "./ErrorBoundary.css";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
|
||||
@ -23,7 +23,7 @@ export class ErrorBoundary extends React.Component<Props, State> {
|
||||
return { hasError: true };
|
||||
}
|
||||
|
||||
componentDidCatch(error: Error, info: ErrorInfo) {
|
||||
componentDidCatch(error: Error) {
|
||||
if (import.meta.env.PROD) {
|
||||
Sentry.captureException(error);
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ export function FileCell({ requestId, purchaseCid }: Props) {
|
||||
const [metadata, setMetadata] = useState<FileMetadata>({
|
||||
name: "N/A.jpg",
|
||||
mimetype: "N/A",
|
||||
uploadedAt: new Date(0, 0, 0, 0, 0, 0),
|
||||
uploadedAt: new Date(0, 0, 0, 0, 0, 0).toJSON(),
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
18
src/main.tsx
18
src/main.tsx
@ -56,13 +56,13 @@ const rootElement = document.getElementById("root")!;
|
||||
if (rootElement) {
|
||||
const root = ReactDOM.createRoot(rootElement);
|
||||
|
||||
await CodexSdk.load();
|
||||
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<App>
|
||||
<RouterProvider router={router} />
|
||||
</App>
|
||||
</StrictMode>
|
||||
);
|
||||
CodexSdk.load().then(() => {
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<App>
|
||||
<RouterProvider router={router} />
|
||||
</App>
|
||||
</StrictMode>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user