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

Added an option for grant restricted

Taichi Masuyama 3 лет назад
Родитель
Сommit
41261e84c9
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      packages/app/src/components/Page/FixPageGrantAlert.tsx

+ 13 - 0
packages/app/src/components/Page/FixPageGrantAlert.tsx

@@ -83,6 +83,19 @@ const FixPageGrantModal = (props: ModalProps): JSX.Element => {
               You need to fix the grant of this page. Select new grant from below.
             </p>
             <div className="ml-2">
+              <div className="custom-control custom-radio mb-3">
+                <input
+                  className="custom-control-input"
+                  name="grantUser"
+                  id="grantUser"
+                  type="radio"
+                  checked={selectedGrant === PageGrant.GRANT_RESTRICTED}
+                  onChange={() => setSelectedGrant(PageGrant.GRANT_RESTRICTED)}
+                />
+                <label className="custom-control-label" htmlFor="grantUser">
+                  { t('fix_page_grant.modal.radio_btn.restrected') }
+                </label>
+              </div>
               <div className="custom-control custom-radio mb-3">
                 <input
                   className="custom-control-input"