Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Dropdown): Convert dropdown to typescript #2502

Merged
merged 11 commits into from Jul 25, 2019
2 changes: 1 addition & 1 deletion packages/patternfly-4/.babelrc
@@ -1,6 +1,6 @@
{
"presets": ["@babel/react"],
"ignore": ["**/__snapshots__", "**/*.d.ts"],
"ignore": ["**/__snapshots__", "**/*.d.ts", "**/*.test.*"],
"plugins": [
"@babel/plugin-transform-typescript",
"babel-plugin-typescript-to-proptypes",
Expand Down
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import { mount } from 'enzyme';
import { HelpIcon } from '@patternfly/react-icons';
import { ApplicationLauncher } from './ApplicationLauncher';
import DropdownItem from '../Dropdown/DropdownItem';
import { DropdownItem } from '../Dropdown/DropdownItem';

import { DropdownPosition, DropdownDirection } from '../Dropdown/dropdownConstants';
import DropdownSeparator from '../Dropdown/Separator';
import { DropdownSeparator } from '../Dropdown/Separator';

const dropdownItems = [
<DropdownItem key="link">Link</DropdownItem>,
Expand Down
Expand Up @@ -63,6 +63,7 @@ export class ApplicationLauncher extends React.Component<ApplicationLauncherProp
isGrouped,
dropdownItems,
items,
ref,
...props
} = this.props;
return (
Expand Down