Skip to content

Commit a8bcd7b

Browse files
collins-selfcollins-self
authored andcommitted
removed drowpdown type
1 parent 7bc2151 commit a8bcd7b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/PropertyUI

Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/PropertyUI/LocationDrawings.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import { CreateGuid } from '@gpa-gemstone/helper-functions';
3333
interface IProps {
3434
Locations: OpenXDA.Types.Location[];
3535
}
36-
type dropdownOption = { Label: string; Callback: () => void; Disabled: boolean; }
3736

3837
const LocationDrawings = (props: IProps) => {
3938
const dispatch = useAppDispatch();
@@ -59,8 +58,8 @@ const LocationDrawings = (props: IProps) => {
5958
setShowDropdown(props.Locations.length > 1);
6059
}, [props.Locations])
6160

62-
function dropdownOptions(): dropdownOption[] {
63-
const options: dropdownOption[] = [];
61+
function dropdownOptions(): { Label: string; Callback: () => void; Disabled: boolean; }[] {
62+
const options: { Label: string; Callback: () => void; Disabled: boolean; }[] = [];
6463
const labels: string[] = props.Locations.map(loc => loc.Name);
6564
labels.forEach((label, index) => {
6665
options.push({

0 commit comments

Comments
 (0)