Skip to content

Commit

Permalink
check js error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-dighe committed May 11, 2023
1 parent ade88ad commit d39cdcb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { i18n } from '../../../localization'
import { actions as navActions } from '../../../navigation'
import {
InitialDeckSetup,
ModulesForEditModulesCard,
selectors as stepFormSelectors,
} from '../../../step-forms'
Expand All @@ -32,6 +33,7 @@ import { StyledText } from '../StyledText'

import flexStyles from '../FlexComponents.css'
import styles from '../FlexFileDetails/FlexFileDetails.css'
import { FilePage } from '../../FilePage'
export interface Props {
formValues: FileMetadataFields
instruments: React.ComponentProps<typeof InstrumentGroup>
Expand All @@ -41,6 +43,14 @@ export interface Props {
modules: ModulesForEditModulesCard
}

type PropsData = React.ComponentProps<typeof FilePage>
interface SP {
instruments: PropsData['instruments']
formValues: PropsData['formValues']
_initialDeckSetup: InitialDeckSetup
modules: PropsData['modules']
}

// TODO(mc, 2020-02-28): explore l10n for these dates
const DATE_ONLY_FORMAT = 'MMM dd, yyyy'
const DATETIME_FORMAT = 'MMM dd, yyyy | h:mm a'
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/src/components/ProtocolEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function ProtocolEditorComponent(props: Props): JSX.Element {
<PrereleaseModeIndicator />
<div className={styles.wrapper}>
<ConnectedNav />
<ConnectedSidebar />
{!props.children && <ConnectedSidebar />}
<div className={styles.main_page_wrapper}>
<ConnectedTitleBar />

Expand Down
1 change: 1 addition & 0 deletions shared-data/js/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ export interface ProtocolMetadata {
category?: string | null
subcategory?: string | null
tags?: string[]
deckId?: string | null
[key: string]: unknown
}
export interface PendingProtocolAnalysis {
Expand Down

0 comments on commit d39cdcb

Please sign in to comment.