style: kanban dropdowns, github integration loaders

This commit is contained in:
Aaryan Khandelwal
2023-02-23 22:34:36 +05:30
parent 69e8b504de
commit b4c4271f66
12 changed files with 91 additions and 60 deletions

View File

@@ -4,6 +4,9 @@ export const replaceUnderscoreIfSnakeCase = (str: string) => str.replace(/_/g, "
export const capitalizeFirstLetter = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
export const truncateText = (str: string, length: number) =>
str.length > length ? `${str.substring(0, length)}...` : str;
export const createSimilarString = (str: string) => {
const shuffled = str
.split("")