Skip to content

Commit

Permalink
chore: remove unnecessary imports
Browse files Browse the repository at this point in the history
References: #51, #48

Signed-off-by: Prince Muel <[email protected]>
  • Loading branch information
princemuel committed Apr 30, 2023
1 parent c678609 commit b84d02b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/components/templates/invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
useNavigate,
useParams,
} from 'react-router-dom';
import { Details } from '../organisms';
import { InvoiceDetails } from '../organisms';

interface Props {}

Expand All @@ -24,8 +24,9 @@ const InvoiceTemplate = (props: Props) => {
const location = useLocation();

if (!invoiceId) {
return <Navigate to='/' state={{ from: location }} replace />;
return <Navigate to='/invoices' state={{ from: location }} replace />;
}

const navigate = useNavigate();
const queryClient = useQueryClient();

Expand Down Expand Up @@ -94,20 +95,10 @@ const InvoiceTemplate = (props: Props) => {

return (
<Fragment>
{/* <InvoiceDetailsMobile
invoice={invoice}
updateStatus={updateStatus}
openDeleteModal={openModal}
/>
<InvoiceDetails
invoice={invoice}
updateStatus={updateStatus}
openDeleteModal={openModal}
/> */}
<Details
invoice={invoice}
updateStatus={updateStatus}
openDeleteModal={openModal}
/>

<Transition show={isOpen} as={Fragment}>
Expand Down

0 comments on commit b84d02b

Please sign in to comment.