-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making the sync component buttons be actual buttons instead of links (#…
…391)
- Loading branch information
Showing
9 changed files
with
72 additions
and
57 deletions.
There are no files selected for viewing
Binary file modified
BIN
-2.83 KB
(88%)
..._/core-flows-spec-ts-core-flows-create-a-notebook-using-the-dropdown-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/app/components/sync/sync-options/SyncOptionsContainer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { IStoreState } from '../../../types'; | ||
import { default as SyncOptionsComponent } from './SyncOptionsComponent'; | ||
import { Action, Dispatch } from 'redux'; | ||
import { connect } from 'react-redux'; | ||
import { actions } from '../../../actions'; | ||
|
||
export const syncOptionsConnector = connect(mapStateToProps, mapDispatchToProps); | ||
|
||
function mapStateToProps({ notepads, sync }: IStoreState) { | ||
return { | ||
syncState: sync, | ||
syncId: notepads?.notepad?.activeSyncId, | ||
notepad: notepads?.notepad?.item | ||
}; | ||
} | ||
|
||
function mapDispatchToProps(dispatch: Dispatch<Action>) { | ||
return { | ||
sync: (syncId, notepad) => dispatch(actions.sync({ syncId, notepad })), | ||
deleteNotepad: syncId => dispatch(actions.deleteFromSync.started(syncId)), | ||
addNotepad: (user, title) => dispatch(actions.addToSync.started({ user, notepadTitle: title })) | ||
}; | ||
} | ||
|
||
export default syncOptionsConnector(SyncOptionsComponent); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters