Skip to content

Commit

Permalink
fix: remove unnecessary PropsWithRef type (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored Jul 25, 2023
1 parent a4c8f9b commit 13d5cf7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ErrorBoundary.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Component,
createElement,
ErrorInfo,
isValidElement,
PropsWithRef,
} from "react";
import { Component, createElement, ErrorInfo, isValidElement } from "react";
import { ErrorBoundaryContext } from "./ErrorBoundaryContext";
import { ErrorBoundaryProps, FallbackProps } from "./types";

Expand All @@ -16,7 +10,7 @@ const initialState: ErrorBoundaryState = {
};

export class ErrorBoundary extends Component<
PropsWithRef<ErrorBoundaryProps>,
ErrorBoundaryProps,
ErrorBoundaryState
> {
constructor(props: ErrorBoundaryProps) {
Expand Down

0 comments on commit 13d5cf7

Please sign in to comment.