More react

- consolidated lang items
- proxy host paths work
This commit is contained in:
Jamie Curnow
2025-10-16 18:59:19 +10:00
parent 7af01d0fc7
commit f2b5b19a83
56 changed files with 946 additions and 928 deletions

View File

@@ -24,4 +24,15 @@ const showError = (message: string) => {
});
};
export { showSuccess, showError };
const showObjectSuccess = (obj: string, action: string) => {
showSuccess(
intl.formatMessage(
{
id: `notification.object-${action}`,
},
{ object: intl.formatMessage({ id: obj }) },
),
);
};
export { showSuccess, showError, showObjectSuccess };