Skip to content

Commit

Permalink
remove old show/hide Credits hookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Laird-McConnell committed Nov 15, 2016
1 parent 378b10b commit 5d2ee79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
6 changes: 1 addition & 5 deletions src/client/addressBar/addressBarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ export class AddressBarMenu extends React.Component<{}, {}> {
},
{
label: 'Credits',
// click: () => AddressBarActions.showCredits()
click: () => {
let path = 'https://github.com/Microsoft/BotFramework-Emulator/blob/master/ThirdPartyLicenses.txt';
window.open(path);
}
click: () => window.open('https://github.com/Microsoft/BotFramework-Emulator/blob/master/ThirdPartyLicenses.txt')
},
{
type: 'separator'
Expand Down
18 changes: 0 additions & 18 deletions src/client/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ type AddressBarAction = {
type: 'AddressBar_ShowAbout'
} | {
type: 'AddressBar_HideAbout'
} | {
type: 'AddressBar_ShowCredits'
} | {
type: 'AddressBar_HideCredits'
} | {
type: 'AddressBar_ShowAppSettings'
} | {
Expand Down Expand Up @@ -197,16 +193,6 @@ export class AddressBarActions {
type: 'AddressBar_HideAbout'
})
}
static showCredits() {
dispatch<AddressBarAction>({
type: 'AddressBar_ShowCredits'
})
}
static hideCredits() {
dispatch<AddressBarAction>({
type: 'AddressBar_HideCredits'
})
}
static showAppSettings() {
this.hideBotCreds();
this.hideSearchResults();
Expand Down Expand Up @@ -371,10 +357,6 @@ export const addressBarReducer: Reducer<IAddressBarState> = (
return Object.assign({}, state, { showAbout: true });
case 'AddressBar_HideAbout':
return Object.assign({}, state, { showAbout: false });
case 'AddressBar_ShowCredits':
return Object.assign({}, state, { showCredits: true });
case 'AddressBar_HideCredits':
return Object.assign({}, state, { showCredits: false });
case 'AddressBar_ShowAppSettings':
return Object.assign({}, state, { showAppSettings: true });
case 'AddressBar_HideAppSettings':
Expand Down

0 comments on commit 5d2ee79

Please sign in to comment.