prettier new config

This commit is contained in:
2025-09-05 00:59:55 +02:00
parent 097e991aec
commit e5186bf72d
33 changed files with 757 additions and 763 deletions

View File

@@ -1,4 +1,4 @@
import { ColorPaletteProp } from '@mui/joy'
import { ColorPaletteProp } from '@mui/joy';
export enum TState {
clean,
@@ -11,30 +11,30 @@ export enum TState {
export const TDisabled = (state: TState): boolean => {
switch (state) {
case TState.busy:
return true
return true;
default:
return false
return false;
}
}
};
export const TColor = (state: TState): ColorPaletteProp => {
switch (state) {
case TState.clean:
return 'primary'
return 'primary';
case TState.dirty:
return 'warning'
return 'warning';
case TState.busy:
return 'neutral'
return 'neutral';
case TState.success:
return 'success'
return 'success';
case TState.failure:
return 'warning'
return 'warning';
}
}
};
export default interface TProps {
disabled?: boolean
disabled?: boolean;
completionAction?: (
value?: string | number | readonly string[]
) => Promise<void>
) => Promise<void>;
}