Skip to content

Commit

Permalink
Remove redundant files and minor UI improvements (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiphucnguyen authored Dec 4, 2024
1 parent 567a1ca commit ac37231
Show file tree
Hide file tree
Showing 63 changed files with 193 additions and 5,138 deletions.
35 changes: 0 additions & 35 deletions src/app/portal/accounts/[accountId]/edit/page.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/app/portal/accounts/[accountId]/page.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/portal/accounts/layout.tsx

This file was deleted.

50 changes: 0 additions & 50 deletions src/app/portal/accounts/page.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/app/portal/contacts/[contactId]/edit/page.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/app/portal/contacts/[contactId]/page.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/portal/contacts/layout.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/portal/contacts/page.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/portal/files/layout.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/app/portal/files/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/app/portal/settings/accounts/industries/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/app/portal/settings/accounts/types/page.tsx

This file was deleted.

11 changes: 3 additions & 8 deletions src/app/portal/settings/authorities/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import { Plus } from "lucide-react";
import { useRouter } from "next/navigation";
import React, { useState } from "react";
import React from "react";

import { SimpleContentView } from "@/components/admin-panel/simple-content-view";
import { AuthoritiesTable } from "@/components/authorities/authority-table";
import { AuthoritiesView } from "@/components/authorities/authority-list";
import { Heading } from "@/components/heading";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { usePagePermission } from "@/hooks/use-page-permission";
import { getAuthorities } from "@/lib/actions/authorities.action";
import { PermissionUtils } from "@/types/resources";

const breadcrumbItems = [
Expand All @@ -22,7 +21,6 @@ const breadcrumbItems = [
const AuthoritiesPage = () => {
const router = useRouter();
const permissionLevel = usePagePermission();
const [authorityPromise, setAuthorityPromise] = useState(getAuthorities);

return (
<SimpleContentView title="Authorities" breadcrumbItems={breadcrumbItems}>
Expand All @@ -38,10 +36,7 @@ const AuthoritiesPage = () => {
)}
</div>
<Separator />
<AuthoritiesTable
authoritiesPromise={authorityPromise}
enableAdvancedFilter={true}
/>
<AuthoritiesView />
</SimpleContentView>
);
};
Expand Down
15 changes: 0 additions & 15 deletions src/components/accounts/account-delete-dialog.tsx

This file was deleted.

Loading

0 comments on commit ac37231

Please sign in to comment.