feat: add reauthorization banner for Facebook (#9553)

This commit is contained in:
Shivam Mishra
2024-05-30 09:41:04 +05:30
committed by GitHub
parent b53ce3fa79
commit 6c682a6869
7 changed files with 25 additions and 24 deletions

View File

@@ -87,7 +87,8 @@ export const getInboxClassByType = (type, phoneNumber) => {
};
export const getInboxWarningIconClass = (type, reauthorizationRequired) => {
if (type === INBOX_TYPES.FB && reauthorizationRequired) {
const allowedInboxTypes = [INBOX_TYPES.FB, INBOX_TYPES.EMAIL];
if (allowedInboxTypes.includes(type) && reauthorizationRequired) {
return 'warning';
}
return '';