Refactor organization and user management components/tests for simplification and improved clarity
- Removed unused properties (`slug`, `is_active`, etc.) in organization and user-related components and test data. - Simplified function data typing by removing redundant `any` usage. - Updated `params` in `OrganizationMembersPage` for Promise resolution and async handling. - Cleaned up unused variables and streamlined form handling in `AddMemberDialog`.
This commit is contained in:
@@ -17,12 +17,14 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
interface PageProps {
|
||||
params: {
|
||||
params: Promise<{
|
||||
id: string;
|
||||
};
|
||||
}>;
|
||||
}
|
||||
|
||||
export default function OrganizationMembersPage({ params }: PageProps) {
|
||||
export default async function OrganizationMembersPage({ params }: PageProps) {
|
||||
const { id } = await params;
|
||||
|
||||
return (
|
||||
<div className="container mx-auto px-6 py-8">
|
||||
<div className="space-y-6">
|
||||
@@ -36,7 +38,7 @@ export default function OrganizationMembersPage({ params }: PageProps) {
|
||||
</div>
|
||||
|
||||
{/* Organization Members Content */}
|
||||
<OrganizationMembersContent organizationId={params.id} />
|
||||
<OrganizationMembersContent organizationId={id} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user