This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/features/dashboard/components/AppForm Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,6 @@ const AppForm = ({
8989 return admin_check_array . includes ( true ) ;
9090 } ;
9191
92- const disableMarkup = useMemo ( ( ) => {
93- let isDisabled ;
94- isNotDemoCurrency ( currentLoginAccount ) === 'Demo' ? ( isDisabled = true ) : ( isDisabled = false ) ;
95- return isDisabled ;
96- } , [ currentLoginAccount ] ) ;
97-
9892 const AccountErrorMessage = ( ) => (
9993 < React . Fragment >
10094 { ! accountHasAdminToken ( ) && (
@@ -211,12 +205,7 @@ const AppForm = ({
211205 </ div >
212206 < div >
213207 < div >
214- < div
215- className = { clsx ( styles . customTextInput , {
216- [ styles . disableTokenDropdown ] : disableMarkup ,
217- } ) }
218- id = 'custom-text-input'
219- >
208+ < div className = { clsx ( styles . customTextInput ) } id = 'custom-text-input' >
220209 < input
221210 { ...register ( 'app_markup_percentage' ) }
222211 type = 'number'
@@ -225,7 +214,6 @@ const AppForm = ({
225214 className = 'last'
226215 defaultValue = { 0 }
227216 placeholder = ' '
228- disabled = { disableMarkup }
229217 />
230218 < label htmlFor = 'app_markup_percentage' > Markup percentage (optional)</ label >
231219 </ div >
You can’t perform that action at this time.
0 commit comments