feat(lessons): add lessons from client db
This commit is contained in:
@ -111,3 +111,8 @@ export const formatGroupTitle = (status: string) => {
|
||||
return status;
|
||||
}
|
||||
};
|
||||
|
||||
export const truncate = (str: string | undefined, max = 14): string => {
|
||||
if (!str) return "";
|
||||
return str.length > max ? str.slice(0, max - 1) + "…" : str;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user