refactor(FE): refactor UI detail from page into drawer

This commit is contained in:
randy-ar
2025-12-02 16:25:55 +07:00
parent 9eba5ffeca
commit 31f758d680
5 changed files with 330 additions and 9 deletions
+8
View File
@@ -29,6 +29,14 @@ export const formatNumber = (
}).format(value);
};
export const formatTitleCase = (value: string) => {
return value
.toLowerCase()
.split(' ')
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
};
export function formatVechicleNumber(value: string): string {
let result = '';
for (let i = 0; i < (value?.length ?? 0); i++) {