Mao 4 лет назад
Родитель
Сommit
a375c8d3ea
1 измененных файлов с 2 добавлено и 12 удалено
  1. 2 12
      packages/app/src/components/PageCreateModal.jsx

+ 2 - 12
packages/app/src/components/PageCreateModal.jsx

@@ -165,11 +165,7 @@ const PageCreateModal = (props) => {
             </div>
 
             <div className="d-flex justify-content-end mt-1 mt-sm-0">
-              <button
-                type="button"
-                className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3"
-                onClick={createTodayPage}
-              >
+              <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createTodayPage}>
                 <i className="icon-fw icon-doc"></i>{t('Create')}
               </button>
             </div>
@@ -209,19 +205,13 @@ const PageCreateModal = (props) => {
                       placeholder={t('Input page name')}
                       onChange={e => onChangePageNameInputHandler(e.target.value)}
                       required
-                      data-testid="createPageInput"
                     />
                   </form>
                 )}
             </div>
 
             <div className="d-flex justify-content-end mt-1 mt-sm-0">
-              <button
-                data-testid="createPageBtn"
-                type="button"
-                className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3"
-                onClick={createInputPage}
-              >
+              <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createInputPage}>
                 <i className="icon-fw icon-doc"></i>{t('Create')}
               </button>
             </div>