Skip to content

Commit

Permalink
Better message for btns and coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-jha-mech committed Oct 27, 2023
1 parent 78b3d33 commit 72a65f3
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@
"deleteOrg": {
"deleteOrganization": "Delete Organization",
"deleteMsg": "Do you want to delete this organization?",
"no": "No",
"yes": "Yes",
"cancel": "Cancel",
"confirmDelete": "Confirm Delete",
"longDelOrgMsg": "By clicking on Delete organization button you will the organization will be permanently deleted along with its events, tags and all related data."
},
"userUpdate": {
Expand Down
6 changes: 3 additions & 3 deletions public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@
"deleteOrg": {
"deleteOrganization": "Supprimer l'organisation",
"deleteMsg": "Voulez-vous supprimer cette organisation ?",
"no": "Non",
"yes": "Oui",
"cancel": "Annuler",
"confirmDelete": "Confirmer la suppression",
"longDelOrgMsg": "En cliquant sur le bouton Supprimer l'organisation, l'organisation sera définitivement supprimée, ainsi que ses événements, étiquettes et toutes les données associées."
},
"userUpdate": {
Expand Down Expand Up @@ -632,4 +632,4 @@
"selectContact": "Sélectionnez un contact pour démarrer la conversation",
"sendMessage": "Envoyer le message"
}
}
}
6 changes: 3 additions & 3 deletions public/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@
"deleteOrg": {
"deleteOrganization": "संगठन हटाएं",
"deleteMsg": "क्या आप इस संगठन को हटाना चाहते हैं?",
"no": "नहीं",
"yes": "हां",
"cancel": "रद्द करना",
"confirmDelete": "हटाने की पुष्टि करें",
"longDelOrgMsg": "संगठन हटाने के बटन पर क्लिक करके, संगठन को स्थायित रूप से हटा दिया जाएगा, साथ ही उसके आयोजन, टैग और सभी संबंधित डेटा भी हटा दिया जाएगा।"
},
"userUpdate": {
Expand Down Expand Up @@ -633,4 +633,4 @@
"selectContact": "बातचीत शुरू करने के लिए एक संपर्क चुनें",
"sendMessage": "मेसेज भेजें"
}
}
}
6 changes: 3 additions & 3 deletions public/locales/sp.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@
"deleteOrg": {
"deleteOrganization": "Eliminar organización",
"deleteMsg": "¿Desea eliminar esta organización?",
"no": "No",
"yes": "",
"cancel": "Cancelar",
"confirmDelete": "Confirmar eliminación",
"longDelOrgMsg": "Al hacer clic en el botón de Eliminar organización, se eliminará permanentemente la organización junto con sus eventos, etiquetas y todos los datos relacionados."
},
"userUpdate": {
Expand Down Expand Up @@ -633,4 +633,4 @@
"selectContact": "Seleccione un contacto para iniciar una conversación",
"sendMessage": "Enviar mensaje"
}
}
}
6 changes: 3 additions & 3 deletions public/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@
"deleteOrg": {
"deleteOrganization": "删除组织",
"deleteMsg": "您是否要删除此组织?",
"no": "",
"yes": "",
"cancel": "取消",
"confirmDelete": "确认删除",
"longDelOrgMsg": "点击删除组织按钮后,将永久删除该组织以及其活动、标签和所有相关数据。"
},
"userUpdate": {
Expand Down Expand Up @@ -633,4 +633,4 @@
"selectContact": "選擇聯絡人開始對話",
"sendMessage": "傳訊息"
}
}
}
8 changes: 4 additions & 4 deletions src/components/DeleteOrg/DeleteOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ function deleteOrg(): JSX.Element {
<Modal.Body>{t('deleteMsg')}</Modal.Body>
<Modal.Footer>
<Button
variant="danger"
variant="secondary"
onClick={toggleDeleteModal}
data-testid="closeDelOrgModalBtn"
>
{t('no')}
{t('cancel')}
</Button>
<Button
variant="success"
variant="danger"
onClick={deleteOrg}
data-testid="deleteOrganizationBtn"
>
{t('yes')}
{t('confirmDelete')}
</Button>
</Modal.Footer>
</Modal>
Expand Down
4 changes: 2 additions & 2 deletions src/screens/OrgSettings/OrgSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function orgSettings(): JSX.Element {
});

document.title = t('title');
const currentUrl = window.location.href.split('=')[1];
const orgId = window.location.href.split('=')[1];

return (
<>
Expand All @@ -29,7 +29,7 @@ function orgSettings(): JSX.Element {
</div>
</div>
<Card.Body className={styles.cardBody}>
{currentUrl && <OrgUpdate orgId={currentUrl} />}
{orgId && <OrgUpdate orgId={orgId} />}
</Card.Body>
</Card>
</Col>
Expand Down

0 comments on commit 72a65f3

Please sign in to comment.