update,
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
'use client';
|
||||
|
||||
// RULES: sorting direction for student lists
|
||||
export type SortDir = 'asc' | 'desc';
|
||||
|
||||
// RULES: core student data structure
|
||||
export interface Student {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -14,6 +16,7 @@ export interface Student {
|
||||
updatedAt?: Date;
|
||||
}
|
||||
|
||||
// RULES: form data structure for creating new student
|
||||
export interface CreateFormProps {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -36,6 +39,7 @@ export interface CreateFormProps {
|
||||
// status?: 'pending' | 'active' | 'blocked';
|
||||
}
|
||||
|
||||
// RULES: form data structure for editing existing student
|
||||
export interface EditFormProps {
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -57,11 +61,14 @@ export interface EditFormProps {
|
||||
// quota?: number;
|
||||
// status?: 'pending' | 'active' | 'blocked';
|
||||
}
|
||||
// RULES: filter props for student search and filtering
|
||||
export interface CustomersFiltersProps {
|
||||
filters?: Filters;
|
||||
sortDir?: SortDir;
|
||||
fullData: Student[];
|
||||
}
|
||||
|
||||
// RULES: available filter options for student data
|
||||
export interface Filters {
|
||||
email?: string;
|
||||
phone?: string;
|
||||
|
Reference in New Issue
Block a user