From bf1ce7317688650b49a9a71ae04b18f9960bc6ec Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Sat, 12 Feb 2022 11:55:52 +0100
Subject: Fixed type issue

---
 src/components/RequestDetails/RequestDetails.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/components/RequestDetails/RequestDetails.tsx')

diff --git a/src/components/RequestDetails/RequestDetails.tsx b/src/components/RequestDetails/RequestDetails.tsx
index 693f691..ece570c 100644
--- a/src/components/RequestDetails/RequestDetails.tsx
+++ b/src/components/RequestDetails/RequestDetails.tsx
@@ -20,12 +20,12 @@ function Timing({ timing }: TimingProps) {
   ) : null;
 }
 
-interface HeadersProps {
+interface HeaderTableProps {
   title: string;
   headers: Headers;
 }
 
-function Headers({ title, headers }: HeadersProps) {
+function HeaderTable({ title, headers }: HeaderTableProps) {
   return (
     <Card className="m-3">
       <Table striped responsive borderless hover className="mb-0">
@@ -123,12 +123,12 @@ export default function RequestDetails({ requestResponse }: DetailsProps) {
       <div className={styles.content}>
         {tab === "headers" && (
           <>
-            <Headers
+            <HeaderTable
               title="request headers"
               headers={requestResponse.request.headers}
             />
             {requestResponse.response && (
-              <Headers
+              <HeaderTable
                 title="response headers"
                 headers={requestResponse.response.headers}
               />
-- 
cgit v1.2.3

