Skip to content

Commit

Permalink
chore: cleanup home template
Browse files Browse the repository at this point in the history
Reference: #48, #51, #49

Signed-off-by: Prince Muel <[email protected]>
  • Loading branch information
princemuel committed May 6, 2023
1 parent 5c78cf9 commit 2459fde
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/templates/home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IStatus } from '@src/@types';
import { useAuthState } from '@src/context';
import { datetime } from '@src/helpers';
import { useGetInvoicesQuery } from '@src/hooks';
import { client } from '@src/lib';
Expand All @@ -12,9 +11,6 @@ const status: IStatus = ['PAID', 'PENDING', 'DRAFT'];
interface Props {}

const HomeTemplate = (props: Props) => {
const auth = useAuthState();
const user = auth?.user;

const { data, isLoading, error } = useGetInvoicesQuery(client, {});

const invoices = (data?.invoices || []).sort((a, b) => {
Expand Down

0 comments on commit 2459fde

Please sign in to comment.