refactor: improve code formatting and consistency across multiple files
- Standardized import statements and removed unnecessary line breaks for better readability in various components. - Enhanced error handling and logging in the useElectronPrinter hook. - Updated sample data formatting in AgGridShowcase for improved clarity. - Refactored JSX elements for consistent indentation and structure in LandingSample, AuthPage, and EventsPage components. - Consolidated and simplified conditional rendering logic in several components. These changes aim to enhance code maintainability and readability throughout the project.
This commit is contained in:
+7
-4
@@ -94,10 +94,13 @@ export function TableFilterDrawer({
|
||||
setPreviousValues(form.getValues());
|
||||
|
||||
// Ensure all fields are explicitly cleared
|
||||
const cleared = Object.keys(form.getValues()).reduce((acc, key) => {
|
||||
acc[key] = '';
|
||||
return acc;
|
||||
}, {} as Record<string, unknown>);
|
||||
const cleared = Object.keys(form.getValues()).reduce(
|
||||
(acc, key) => {
|
||||
acc[key] = '';
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, unknown>,
|
||||
);
|
||||
|
||||
form.reset({ ...cleared, ...(config?.defaultValues || {}) });
|
||||
setHasReset(true);
|
||||
|
||||
Reference in New Issue
Block a user