You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LogoutDialog.tsx 549B

123456789101112131415161718192021
  1. import React from 'react';
  2. import { WithTranslation } from 'react-i18next';
  3. import ConfirmDialog
  4. from '../../../base/dialog/components/native/ConfirmDialog';
  5. interface ILogoutDialogProps extends WithTranslation {
  6. onLogout: Function;
  7. }
  8. const LogoutDialog: React.FC<ILogoutDialogProps> = ({ onLogout }: ILogoutDialogProps) => (
  9. <ConfirmDialog
  10. cancelLabel = 'dialog.Cancel'
  11. confirmLabel = 'dialog.Yes'
  12. descriptionKey = 'dialog.logoutQuestion'
  13. onSubmit = { onLogout } />
  14. );
  15. export default LogoutDialog;