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:
@@ -32,7 +32,6 @@ describe('OrganizationActionMenu', () => {
|
||||
const mockOrganization: Organization = {
|
||||
id: '1',
|
||||
name: 'Acme Corporation',
|
||||
slug: 'acme-corporation',
|
||||
description: 'Leading provider',
|
||||
is_active: true,
|
||||
created_at: '2025-01-01T00:00:00Z',
|
||||
|
||||
@@ -39,7 +39,6 @@ describe('OrganizationFormDialog', () => {
|
||||
const mockOrganization: Organization = {
|
||||
id: 'org-1',
|
||||
name: 'Test Organization',
|
||||
slug: 'test-org',
|
||||
description: 'Test description',
|
||||
is_active: true,
|
||||
created_at: '2025-01-01',
|
||||
|
||||
@@ -22,7 +22,6 @@ describe('OrganizationListTable', () => {
|
||||
{
|
||||
id: '1',
|
||||
name: 'Acme Corporation',
|
||||
slug: 'acme-corporation',
|
||||
description: 'Leading provider of innovative solutions',
|
||||
is_active: true,
|
||||
created_at: '2025-01-01T00:00:00Z',
|
||||
@@ -32,7 +31,6 @@ describe('OrganizationListTable', () => {
|
||||
{
|
||||
id: '2',
|
||||
name: 'Tech Startup Inc',
|
||||
slug: 'tech-startup-inc',
|
||||
description: null,
|
||||
is_active: false,
|
||||
created_at: '2025-01-15T00:00:00Z',
|
||||
|
||||
Reference in New Issue
Block a user