apply branding to org auth page

This commit is contained in:
Fred KISSIE
2025-11-15 06:08:02 +01:00
parent 29a52f6ac4
commit 87f23f582c
5 changed files with 76 additions and 106 deletions

View File

@@ -0,0 +1,17 @@
export function replacePlaceholder(
stringWithPlaceholder: string,
data: Record<string, string>
) {
let newString = stringWithPlaceholder;
const keys = Object.keys(data);
for (const key of keys) {
newString = newString.replace(
new RegExp(`{{${key}}}`, "gm"),
data[key]
);
}
return newString;
}