mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: add homepage & auth
This commit is contained in:
@@ -25,3 +25,11 @@ export function getPreviewUrl(
|
||||
typeof file === "string" ? file : file.path
|
||||
);
|
||||
}
|
||||
|
||||
export const ucfirst = (str: string) => {
|
||||
return str.charAt(0).toUpperCase() + str.substring(1);
|
||||
};
|
||||
|
||||
export const ucwords = (str: string) => {
|
||||
return str.split(" ").map(ucfirst).join(" ");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user