mirror of
https://github.com/johndoe6345789/tsmorph.git
synced 2026-04-24 13:54:58 +00:00
Merge pull request #2 from johndoe6345789/codex/refactor-large-tsx-component-into-smaller-files
Restore example dashboard and add warning headers
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
|
||||||
import React, { useState, useEffect, useCallback } from 'react';
|
import React, { useState, useEffect, useCallback } from 'react';
|
||||||
import { User, FormData, ValidationErrors } from "./UserManagementDashboard.types";
|
import { User, FormData, ValidationErrors } from "./UserManagementDashboard.types";
|
||||||
import { validateForm, getRoleBadgeColor, getStatusBadgeColor, formatDate } from "./UserManagementDashboard.utils";
|
import { validateForm, getRoleBadgeColor, getStatusBadgeColor, formatDate } from "./UserManagementDashboard.utils";
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
|
* WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
|
||||||
|
*
|
||||||
* Extracted types and interfaces
|
* Extracted types and interfaces
|
||||||
* Auto-generated by ts-morph refactoring script
|
* Auto-generated by ts-morph refactoring script
|
||||||
*/
|
*/
|
||||||
@@ -20,4 +22,4 @@ export interface ValidationErrors {
|
|||||||
name?: string;
|
name?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
role?: string;
|
role?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
|
* WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
|
||||||
|
*
|
||||||
* Extracted utility functions
|
* Extracted utility functions
|
||||||
* Auto-generated by ts-morph refactoring script
|
* Auto-generated by ts-morph refactoring script
|
||||||
*/
|
*/
|
||||||
@@ -48,4 +50,4 @@ export const formatDate = (dateString: string): string => {
|
|||||||
month: 'short',
|
month: 'short',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user