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

Remove remaining deprecated props #2073

Merged
merged 11 commits into from
Feb 4, 2018
Merged

Remove remaining deprecated props #2073

merged 11 commits into from
Feb 4, 2018

Conversation

adidahiya
Copy link
Contributor

Fixes #2019

  • see commits
  • needs a regression pass

Copy link
Contributor

@giladgray giladgray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍 . few small comments, and build failed.

@@ -78,7 +78,7 @@ export class BlueprintDocs extends React.Component<IBlueprintDocsProps, { themeN

const match = /docs\/v([0-9]+)/.exec(location.href);
// default to latest release if we can't find a major version in the URL
const currentRelease = match == null ? versions[0].version : match[1];
const currentRelease = match == null ? versions[versions.length - 1].version : match[1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

<div className="pt-navbar-group">
<Navigator items={nav} onNavigate={this.handleNavigation} />
</div>
<div className="pt-navbar-group">{this.props.navbarRight}</div>
<div className="pt-navbar-group pt-navbar-group-right">{this.props.navbarRight}</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have components for Navbar etc, but whatever


export const ROW_HEADER_CELL_MENU_DEPRECATED =
deprec + ` <RowHeaderCell> menu is deprecated. Use menuRenderer instead.`;
// const deprec = `${ns} DEPRECATION:`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh, sort of on purpose. will be useful as a reminder for future deprecation messages 🤷‍♂️

isActive: false,
menuIconName: "chevron-down",
};

public static contextTypes: React.ValidationMap<
IColumnInteractionBarContextTypes
> = columnInteractionBarContextTypes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't need React.ValidationMap... type info. let it come from columnInteractionBarContextTypes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you do need it. there's a whole "typescript cannot name this type even though it knows where it comes from" rabbit hole which I won't bother explaining here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dang i gotcha

@@ -425,6 +422,10 @@ export class Table extends AbstractComponent<ITableProps, ITableState> {
selectionModes: SelectionModes.ALL,
};

public static childContextTypes: React.ValidationMap<
IColumnInteractionBarContextTypes
> = columnInteractionBarContextTypes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static childContextTypes = columnInteractionBarContextTypes should do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, see above

@blueprint-bot
Copy link

fix bad import

Preview: documentation | landing | table

@blueprint-bot
Copy link

Fix table tests

Preview: documentation | landing | table

@adidahiya adidahiya merged commit dd2042e into develop Feb 4, 2018
@adidahiya adidahiya deleted the ad/deprecated-props branch February 4, 2018 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants