fix: resolve lint error and typecheck failures for MVP launch readiness

- Remove unused `registerUser` import in e2e/api/inquiries.spec.ts
- Add `override` modifier to class methods in query-provider.tsx

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-10 19:01:45 +07:00
parent 08d84a56a3
commit bd33c92977
2 changed files with 4 additions and 4 deletions

View File

@@ -37,13 +37,13 @@ class QueryErrorBoundaryInner extends Component<
{ children: ReactNode; onReset: () => void }, { children: ReactNode; onReset: () => void },
ErrorBoundaryState ErrorBoundaryState
> { > {
state: ErrorBoundaryState = { error: null }; override state: ErrorBoundaryState = { error: null };
static getDerivedStateFromError(error: Error) { static getDerivedStateFromError(error: Error) {
return { error }; return { error };
} }
componentDidCatch(error: Error, info: ErrorInfo) { override componentDidCatch(error: Error, info: ErrorInfo) {
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
console.error('Query error boundary caught:', error, info); console.error('Query error boundary caught:', error, info);
} }
@@ -54,7 +54,7 @@ class QueryErrorBoundaryInner extends Component<
this.setState({ error: null }); this.setState({ error: null });
}; };
render() { override render() {
if (this.state.error) { if (this.state.error) {
return <QueryErrorFallback error={this.state.error} reset={this.reset} />; return <QueryErrorFallback error={this.state.error} reset={this.reset} />;
} }

View File

@@ -1,4 +1,4 @@
import { test, expect, createListing, registerUser } from '../fixtures'; import { test, expect, createListing } from '../fixtures';
test.describe('Inquiries API', () => { test.describe('Inquiries API', () => {
test('POST /inquiries — creates inquiry for a listing', async ({ test('POST /inquiries — creates inquiry for a listing', async ({