Allow passing desired name while creating account.

This commit is contained in:
muzam1l
2022-07-01 14:33:28 +05:30
parent 25c5b9c015
commit f163b052e1
3 changed files with 76 additions and 39 deletions

View File

@@ -6,4 +6,10 @@ export const guessZipFileName = (files: File[]) => {
let parts = (files.filter(f => f.name.endsWith('.c'))[0]?.name || 'hook').split('.')
parts = parts.length > 1 ? parts.slice(0, -1) : parts
return parts.join('')
}
export const capitalize = (value?: string) => {
if (!value) return '';
return value[0].toLocaleUpperCase() + value.slice(1);
}