@@ -47,7 +47,7 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
47
47
const [ t15 , setT15 ] = useState ( false ) ;
48
48
const [ polymers , setPolymers ] = useState ( false ) ;
49
49
const [ NPZz , setNPZz ] = useState ( false ) ;
50
- const [ orgMet , setOrgMet ] = useState ( inchiVersion === "1.07.3-orgmet" ) ;
50
+ const [ molecularInorganics , setMolecularInorganics ] = useState ( inchiVersion === "1.07.3-orgmet" ) ;
51
51
const [ showTautomerism , setShowTautomerism ] = useState ( true ) ; // Add state for tautomerism visibility
52
52
53
53
// Additional stereo options
@@ -111,8 +111,8 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
111
111
112
112
if ( NPZz ) options . push ( "NPZz" ) ;
113
113
114
- // orgMet is only available in the 1.07.3-orgmet version
115
- if ( orgMet && inchiVersion === "1.07.3-orgmet" ) options . push ( "OrgMet " ) ;
114
+ // molecularInorganics is only available in the 1.07.3-orgmet version
115
+ if ( molecularInorganics && inchiVersion === "1.07.3-orgmet" ) options . push ( "MolecularInorganics " ) ;
116
116
117
117
// Format the options string as required by the API
118
118
const optionsString = options . map ( ( opt ) => `-${ opt } ` ) . join ( " " ) ;
@@ -126,7 +126,7 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
126
126
t15 ,
127
127
polymers ,
128
128
NPZz ,
129
- orgMet ,
129
+ molecularInorganics ,
130
130
SUU ,
131
131
SLUUD ,
132
132
NEWPSOFF ,
@@ -143,14 +143,14 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
143
143
onChange ,
144
144
] ) ;
145
145
146
- // Update OrgMet option when InChI version changes
146
+ // Update MolecularInorganics option when InChI version changes
147
147
useEffect ( ( ) => {
148
148
if ( inchiVersion === "1.07.3-orgmet" ) {
149
- setOrgMet ( true ) ; // Enable orgMet when switching to 1.07.3-orgmet
150
- } else if ( orgMet ) {
151
- setOrgMet ( false ) ; // Disable orgMet when switching away from 1.07.3-orgmet
149
+ setMolecularInorganics ( true ) ; // Enable MolecularInorganics when switching to 1.07.3-orgmet
150
+ } else if ( molecularInorganics ) {
151
+ setMolecularInorganics ( false ) ; // Disable MolecularInorganics when switching away from 1.07.3-orgmet
152
152
}
153
- } , [ inchiVersion , orgMet ] ) ;
153
+ } , [ inchiVersion , molecularInorganics ] ) ;
154
154
155
155
// Update polymer-related options when polymers toggle changes
156
156
useEffect ( ( ) => {
@@ -171,7 +171,7 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
171
171
setT15 ( false ) ;
172
172
setPolymers ( false ) ;
173
173
setNPZz ( false ) ;
174
- setOrgMet ( inchiVersion === "1.07.3-orgmet" ? true : false ) ;
174
+ setMolecularInorganics ( inchiVersion === "1.07.3-orgmet" ? true : false ) ;
175
175
setSUU ( false ) ;
176
176
setSLUUD ( false ) ;
177
177
setNEWPSOFF ( false ) ;
@@ -666,14 +666,14 @@ const InChIOptions = ({ onChange, inchiVersion, setInchiVersion }) => {
666
666
{ inchiVersion === "1.07.3-orgmet" && (
667
667
< div className = "flex items-center border-t border-gray-200 dark:border-gray-700 pt-3" >
668
668
< input
669
- id = "orgmet "
669
+ id = "molecularInorganics "
670
670
type = "checkbox"
671
- checked = { orgMet }
672
- onChange = { ( e ) => setOrgMet ( e . target . checked ) }
671
+ checked = { molecularInorganics }
672
+ onChange = { ( e ) => setMolecularInorganics ( e . target . checked ) }
673
673
className = "h-4 w-4 text-green-600 focus:ring-green-500 border-gray-300 rounded"
674
674
/>
675
675
< label
676
- htmlFor = "orgmet "
676
+ htmlFor = "molecularInorganics "
677
677
className = "ml-2 block text-sm text-gray-700 dark:text-gray-300"
678
678
>
679
679
Molecular inorganics
0 commit comments