Skip to content

Commit

Permalink
MM-14048 - Updating secondary button on modal (mattermost#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
asaadmahmood authored and saturninoabril committed Feb 8, 2019
1 parent dbea683 commit e16b26b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default class ResetPasswordModal extends React.Component {
<Modal.Footer>
<button
type='button'
className='btn btn-default'
className='btn btn-link'
onClick={this.doCancel}
>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ exports[`components/ChangeURLModal should match snapshot, modal not showing 1`]
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -257,7 +257,7 @@ exports[`components/ChangeURLModal should match snapshot, modal showing 1`] = `
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -406,7 +406,7 @@ exports[`components/ChangeURLModal should match snapshot, on currentURL 1`] = `
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -555,7 +555,7 @@ exports[`components/ChangeURLModal should match snapshot, on urlError 1`] = `
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -695,7 +695,7 @@ exports[`components/ChangeURLModal should match snapshot, with a input 1`] = `
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
onClick={[Function]}
type="button"
>
Expand Down
2 changes: 1 addition & 1 deletion components/change_url_modal/change_url_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class ChangeURLModal extends React.PureComponent {
<Modal.Footer>
<button
type='button'
className='btn btn-default'
className='btn btn-link'
onClick={this.onCancel}
>
<FormattedMessage
Expand Down
2 changes: 1 addition & 1 deletion components/convert_channel_modal/convert_channel_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class ConvertChannelModal extends React.PureComponent {
<Modal.Footer>
<button
type='button'
className='btn btn-default'
className='btn btn-link'
onClick={this.onHide}
tabIndex='2'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exports[`components/LeaveTeamModal should render the leave team model 1`] = `
componentClass="div"
>
<button
className="btn btn-default"
className="btn btn-link"
id="leaveTeamNo"
onClick={[MockFunction]}
type="button"
Expand Down
2 changes: 1 addition & 1 deletion components/leave_team_modal/leave_team_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class LeaveTeamModal extends React.PureComponent {
<Modal.Footer>
<button
type='button'
className='btn btn-default'
className='btn btn-link'
onClick={this.props.onHide}
id='leaveTeamNo'
>
Expand Down
2 changes: 1 addition & 1 deletion components/leave_team_modal/leave_team_modal.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('components/LeaveTeamModal', () => {
it('should call onHide when cancel is clicked', () => {
const wrapper = shallowWithIntl(<LeaveTeamModal {...requiredProps}/>).
dive({disableLifecycleMethods: true});
const cancel = wrapper.find('.btn-default').first();
const cancel = wrapper.find('.btn-link').first();

cancel.simulate('click');
expect(requiredProps.onHide).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit e16b26b

Please sign in to comment.