Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
SubHeader closed at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadkoren committed Mar 28, 2024
1 parent 3a86940 commit 9ecac06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions portal/src/app/components/protocol-query/ProtocolQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const ProtocolQuery: React.FC<ProtocolQueryProps> = (props: ProtocolQuery
value={experimentName}
onChange={onExperimentNameChanged}
placeholder=''
disabled={isFetching}
required
/>
</div>
Expand All @@ -123,6 +124,7 @@ export const ProtocolQuery: React.FC<ProtocolQueryProps> = (props: ProtocolQuery
isMulti
hideSelectedOptions={false}
closeMenuOnSelect={false}
disabled={isFetching}
required
customComponent={{ Option: AlgorithmsSelectorCustomOption as React.FC }}
/>
Expand All @@ -142,6 +144,7 @@ export const ProtocolQuery: React.FC<ProtocolQueryProps> = (props: ProtocolQuery
closeMenuOnSelect={false}
menuIsOpen={iterationsMenuIsOpen}
setMenuIsOpen={setIterationsMenuIsOpen}
disabled={isFetching}
required
customComponent={{
Option: (props: any) =>
Expand Down Expand Up @@ -171,6 +174,7 @@ export const ProtocolQuery: React.FC<ProtocolQueryProps> = (props: ProtocolQuery
closeMenuOnSelect={false}
menuIsOpen={messageSizeMenuIsOpen}
setMenuIsOpen={setMessageSizeMenuIsOpen}
disabled={isFetching}
required
customComponent={{
Option: (props: any) =>
Expand All @@ -194,6 +198,7 @@ export const ProtocolQuery: React.FC<ProtocolQueryProps> = (props: ProtocolQuery
className={styles.form_item_text_area}
onChange={onDescriptionChanged}
placeholder=''
disabled={isFetching}
/>
</div>
<div className={styles.submitButtonWrapper}>
Expand Down
2 changes: 1 addition & 1 deletion portal/src/app/components/sub-header/SubHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface SubHeaderProps {
handleCloseClick: () => void;
}
export const SubHeader: React.FC<SubHeaderProps> = (props: SubHeaderProps) => {
const [open, setOpen] = useState<boolean>(true);
const [open, setOpen] = useState<boolean>(false);

const handleToggleClick: () => void = useCallback((): void => {
setOpen((prev: boolean) => !prev);
Expand Down

0 comments on commit 9ecac06

Please sign in to comment.