Просмотр исходного кода

added custom-control-input and edited custom-control-label

ryuichi-e 6 лет назад
Родитель
Сommit
9f6067adce
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/client/js/components/Admin/Notification/GlobalNotification.jsx

+ 5 - 4
src/client/js/components/Admin/Notification/GlobalNotification.jsx

@@ -53,14 +53,14 @@ class GlobalNotification extends React.Component {
             <div className="custom-control custom-checkbox custom-checkbox-success">
             <div className="custom-control custom-checkbox custom-checkbox-success">
               <input
               <input
                 id="isNotificationForOwnerPageEnabled"
                 id="isNotificationForOwnerPageEnabled"
+                className="custom-control-input"
                 type="checkbox"
                 type="checkbox"
                 checked={adminNotificationContainer.state.isNotificationForOwnerPageEnabled || false}
                 checked={adminNotificationContainer.state.isNotificationForOwnerPageEnabled || false}
                 onChange={() => { adminNotificationContainer.switchIsNotificationForOwnerPageEnabled() }}
                 onChange={() => { adminNotificationContainer.switchIsNotificationForOwnerPageEnabled() }}
               />
               />
-              <label htmlFor="isNotificationForOwnerPageEnabled">
+              <label className="custom-control-label" htmlFor="isNotificationForOwnerPageEnabled">
                 {/* eslint-disable-next-line react/no-danger */}
                 {/* eslint-disable-next-line react/no-danger */}
                 <span dangerouslySetInnerHTML={{ __html: t('notification_setting.just_me_notification_help') }} />
                 <span dangerouslySetInnerHTML={{ __html: t('notification_setting.just_me_notification_help') }} />
-
               </label>
               </label>
             </div>
             </div>
           </div>
           </div>
@@ -72,11 +72,12 @@ class GlobalNotification extends React.Component {
             <div className="custom-control custom-checkbox custom-checkbox-success">
             <div className="custom-control custom-checkbox custom-checkbox-success">
               <input
               <input
                 id="isNotificationForGroupPageEnabled"
                 id="isNotificationForGroupPageEnabled"
+                className="custom-control-input"
                 type="checkbox"
                 type="checkbox"
                 checked={adminNotificationContainer.state.isNotificationForGroupPageEnabled || false}
                 checked={adminNotificationContainer.state.isNotificationForGroupPageEnabled || false}
                 onChange={() => { adminNotificationContainer.switchIsNotificationForGroupPageEnabled() }}
                 onChange={() => { adminNotificationContainer.switchIsNotificationForGroupPageEnabled() }}
               />
               />
-              <label htmlFor="isNotificationForGroupPageEnabled">
+              <label className="custom-control-label" htmlFor="isNotificationForGroupPageEnabled">
                 {/* eslint-disable-next-line react/no-danger */}
                 {/* eslint-disable-next-line react/no-danger */}
                 <span dangerouslySetInnerHTML={{ __html: t('notification_setting.group_notification_help') }} />
                 <span dangerouslySetInnerHTML={{ __html: t('notification_setting.group_notification_help') }} />
               </label>
               </label>
@@ -85,7 +86,7 @@ class GlobalNotification extends React.Component {
         </div>
         </div>
 
 
         <div className="row my-3">
         <div className="row my-3">
-          <div className="col-xs-offset-4 col-xs-5">
+          <div className="col-sm-5 offset-sm-4">
             <button
             <button
               type="button"
               type="button"
               className="btn btn-primary"
               className="btn btn-primary"