refactor: rework frontend use effect calls (#630)

* refactor: rework frontend use effect calls

* fix: rabbit comments

* fix: handle empty oauth url in login page
This commit is contained in:
Stavros
2026-02-07 12:01:19 +02:00
committed by GitHub
parent fa1c5292f9
commit f08d8593ea
6 changed files with 187 additions and 107 deletions

View File

@@ -5,15 +5,6 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export const isValidUrl = (url: string) => {
try {
new URL(url);
return true;
} catch {
return false;
}
};
export const capitalize = (str: string) => {
return str.charAt(0).toUpperCase() + str.slice(1);
};