Skip to content

Commit

Permalink
CDC #4 - Adding optional "header" prop to AssociatedDropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Nov 1, 2023
1 parent 9260d4a commit bec3c1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/semantic-ui/src/components/AssociatedDropdown.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import { Timer } from '@performant-software/shared-components';
import React, { Component } from 'react';
import React, { Component, type ComponentType } from 'react';
import { Button, Dropdown, Message } from 'semantic-ui-react';
import _ from 'underscore';
import EditModal from './EditModal';
Expand All @@ -18,8 +18,9 @@ type Option = {
type Props = {
className?: string,
collectionName: string,
header?: ComponentType<any>,
modal?: {
component: Component<{}>,
component: ComponentType<any>,
props: any,
onSave: (item: any) => Promise<any>,
state: any
Expand Down Expand Up @@ -181,6 +182,7 @@ class AssociatedDropdown extends Component<Props, State> {
<Dropdown
className={`inline-dropdown ${this.props.className || ''}`}
disabled={this.state.loading}
header={this.props.header}
loading={this.state.loading}
onBlur={this.onBlur.bind(this)}
onChange={this.onOptionSelection.bind(this)}
Expand Down

0 comments on commit bec3c1e

Please sign in to comment.