Jelajahi Sumber

create DuplicatedAlert

zahmis 5 tahun lalu
induk
melakukan
d44f25f8b4
1 mengubah file dengan 22 tambahan dan 0 penghapusan
  1. 22 0
      src/client/js/components/Page/DuplicatedAlert.jsx

+ 22 - 0
src/client/js/components/Page/DuplicatedAlert.jsx

@@ -0,0 +1,22 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { withTranslation } from 'react-i18next';
+
+
+const DuplicatedAlert = (props) => {
+  const { t } = props;
+
+  return (
+    <div className="alert alert-success py-3 px-4">
+      <strong>
+        { t('Duplicated') }:{t('page_page.notice.duplicated')}
+      </strong>
+    </div>
+  );
+};
+
+DuplicatedAlert.propTypes = {
+  t: PropTypes.func.isRequired, // i18next
+};
+
+export default withTranslation()(DuplicatedAlert);