added pagination to a given authors page
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export const truncateString = (str: string, maxLength: number) => {
|
||||
str = str.replace(/<[^>]*>/g, "");
|
||||
return str.length > maxLength ? `${str.slice(0, maxLength)}...` : str;
|
||||
};
|
||||
|
Reference in New Issue
Block a user