diff --git a/src/components/Navbar/NavDropdownContainer.tsx b/src/components/Navbar/NavDropdownContainer.tsx index db2656c..55db242 100644 --- a/src/components/Navbar/NavDropdownContainer.tsx +++ b/src/components/Navbar/NavDropdownContainer.tsx @@ -9,15 +9,15 @@ interface propsT{ links: T.singleLinkT[], title: string, } export class NavDropdownContainer extends React.Component{ - private makeScroller = (ref : React.RefObject | ((any) => void)) => { + private makeScroller = (refFunc : React.RefObject | ((any) => void)) => { const scrollToRef = (ref : React.RefObject) => { const {current} = ref; if(current !== undefined || current !== null) window.scrollTo(0, current!.offsetTop); } - if(ref instanceof (Function)){ - return ref; + if(refFunc instanceof (Function)){ + return refFunc; }else{ - return () => scrollToRef(ref); + return () => scrollToRef(refFunc); } } private makeDropdowns = () => { diff --git a/src/components/TargetForms/TargetForms.tsx b/src/components/TargetForms/TargetForms.tsx index 651b63a..a6e30a3 100644 --- a/src/components/TargetForms/TargetForms.tsx +++ b/src/components/TargetForms/TargetForms.tsx @@ -269,7 +269,8 @@ export class TargetFormsContainer extends React.PureComponent<{}, targetFormsCon const {targetData} = this; const commonStyle = { formControl: {minWidth: '50%', maxWidth: '6rem', display: "inline-flex"}, - formGroup: {marginBottom: '0rem'} + formGroup: {marginBottom: '0rem'}, + inputGroupAppend: {width: '2.5rem', display: 'inline-block'} }; const singleLabel = ([key, value], i) => { return (