|
1 | 1 | import * as React from 'react';
|
2 | 2 |
|
| 3 | +import { LocalizedComponent } from './localizedComponent'; |
| 4 | + |
3 | 5 | import { OneNoteSingleNotebookPickerProps, OneNoteSingleNotebookPicker } from './oneNoteSingleNotebookPicker';
|
4 | 6 |
|
5 | 7 | export interface OneNoteSingleNotebookDropdownState {
|
@@ -80,25 +82,27 @@ export class OneNoteSingleNotebookDropdown extends React.Component<OneNoteSingle
|
80 | 82 | newProps.globals.callbacks = newCallbacks;
|
81 | 83 |
|
82 | 84 | return (
|
83 |
| - <div className='picker-dropdown' ref={this.setWrapperRef}> |
84 |
| - <div className='picker-dropdown-padding'> |
85 |
| - <a className='picker-dropdown-toggle' onClick={this.onClick.bind(this)}> |
86 |
| - <div className='dropdown-arrow-container'> |
87 |
| - <svg version='1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'> |
88 |
| - <polygon id='XMLID_10_' points='3.5,7 4.4,6.1 8,9.7 11.7,6.1 12.6,7 8,11.5' /> |
89 |
| - </svg> |
90 |
| - </div> |
91 |
| - <div className='picker-dropdown-toggle-label' title={this.props.dropdownLabel}> |
92 |
| - {this.props.dropdownLabel} |
93 |
| - </div> |
94 |
| - </a> |
| 85 | + <LocalizedComponent stringOverrides={this.props.globals.strings}> |
| 86 | + <div className='picker-dropdown' ref={this.setWrapperRef}> |
| 87 | + <div className='picker-dropdown-padding'> |
| 88 | + <a className='picker-dropdown-toggle' onClick={this.onClick.bind(this)}> |
| 89 | + <div className='dropdown-arrow-container'> |
| 90 | + <svg version='1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'> |
| 91 | + <polygon id='XMLID_10_' points='3.5,7 4.4,6.1 8,9.7 11.7,6.1 12.6,7 8,11.5' /> |
| 92 | + </svg> |
| 93 | + </div> |
| 94 | + <div className='picker-dropdown-toggle-label' title={this.props.dropdownLabel}> |
| 95 | + {this.props.dropdownLabel} |
| 96 | + </div> |
| 97 | + </a> |
| 98 | + </div> |
| 99 | + {this.state.popupVisible ? |
| 100 | + <div className={'picker-popup ' + (this.props.popupDirection === 'top' ? 'popup-upwards' : '')}> |
| 101 | + {this.props.popupContentOverride ? this.props.popupContentOverride : <OneNoteSingleNotebookPicker {...newProps} />} |
| 102 | + </div> : |
| 103 | + undefined} |
95 | 104 | </div>
|
96 |
| - {this.state.popupVisible ? |
97 |
| - <div className={'picker-popup ' + (this.props.popupDirection === 'top' ? 'popup-upwards' : '')}> |
98 |
| - {this.props.popupContentOverride ? this.props.popupContentOverride : <OneNoteSingleNotebookPicker {...newProps} />} |
99 |
| - </div> : |
100 |
| - undefined} |
101 |
| - </div> |
| 105 | + </LocalizedComponent> |
102 | 106 | );
|
103 | 107 | }
|
104 | 108 | }
|
0 commit comments