Selaa lähdekoodia

[frontend] Removed description and placeholder from input modal.

Nidhi Bhat G 1 vuosi sitten
vanhempi
commit
513284aea6

+ 0 - 7
desktop/core/src/desktop/js/apps/storageBrowser/InputModal/InputModal.tsx

@@ -22,9 +22,7 @@ import './InputModal.scss';
 
 interface InputModalProps {
   cancelText?: string;
-  description: string;
   inputLabel: string;
-  inputPlaceholder?: string;
   okText?: string;
   onClose: () => void;
   onCreate: (name: string) => void;
@@ -34,15 +32,12 @@ interface InputModalProps {
 
 const defaultProps = {
   cancelText: 'Cancel',
-  inputPlaceholder: 'Enter text here',
   okText: 'Submit'
 };
 
 const InputModal: React.FC<InputModalProps> = ({
   cancelText,
-  description,
   inputLabel,
-  inputPlaceholder,
   okText,
   onClose,
   onCreate,
@@ -69,7 +64,6 @@ const InputModal: React.FC<InputModalProps> = ({
       open={showModal}
       title={t(title)}
     >
-      <div className="hue-input-modal__description">{t(description)}</div>
       <div className="hue-input-modal__input-label">{t(inputLabel)}</div>
       <Input
         className="hue-input-modal__input"
@@ -77,7 +71,6 @@ const InputModal: React.FC<InputModalProps> = ({
         onInput={e => {
           setTextInput((e.target as HTMLInputElement).value);
         }}
-        placeholder={t(inputPlaceholder)}
       />
     </Modal>
   );

+ 0 - 2
desktop/core/src/desktop/js/apps/storageBrowser/StorageBrowserPage/StorageBrowserTabContents/StorageBrowserTabContent.tsx

@@ -253,7 +253,6 @@ const StorageBrowserTabContent: React.FC<StorageBrowserTabContentProps> = ({
         />
         <InputModal
           title={'Create New Folder'}
-          description={'You can add a new folder to your storage browser'}
           inputLabel={'Enter folder name here'}
           okText={'Create'}
           showModal={showNewFolderModal}
@@ -262,7 +261,6 @@ const StorageBrowserTabContent: React.FC<StorageBrowserTabContentProps> = ({
         />
         <InputModal
           title={'Create New File'}
-          description={'You can add a new file to your storage browser'}
           inputLabel={'Enter file name here'}
           okText={'Create'}
           showModal={showNewFileModal}