This repository was archived by the owner on Oct 4, 2023. It is now read-only.
Repository navigation
[PAY-1701] Fix "Share to DMs" to work through InboxUnavailableModal #3874
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
444863a
Migrate CreateChatModal to use createModal helper
rickyrombo 0c42a97
Use modal props in SearchUsersModal
rickyrombo b44ac4e
Convert InboxUnavailableModal to use createModal
rickyrombo 505c1b1
Remove CreateChatModal from Modals and fix icon button on chat page
rickyrombo 7cc8ba0
Refactor tipping flow to allow for success/confirmed 'callback' actio…
rickyrombo 82a9f23
the actual usage :P
rickyrombo b6db660
Cancel only on X, otherwise just close
rickyrombo f881901
Fix names for user results
rickyrombo d9c8786
Clear the search when the user creates a chat
rickyrombo 89c4b40
Fix CreateChatPrompt
rickyrombo 428dfe9
CR comments
rickyrombo 283dd24
Use userId instead of user in store
rickyrombo ec09546
Support multiple confirmed success actions as well, and add comments
rickyrombo 5cf12f5
missed a ref
rickyrombo 4561fe0
Remove unused
rickyrombo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
| import { Action } from '@reduxjs/toolkit' | ||
|
|
||
| import { createModal } from '../modals/createModal' | ||
|
|
||
| export type CreateChatModalState = { | ||
| presetMessage?: string | ||
| onCancelAction?: Action | ||
| } | ||
|
|
||
| const createChatModal = createModal<CreateChatModalState>({ | ||
| reducerPath: 'createChatModal', | ||
| initialState: { | ||
| isOpen: false | ||
| }, | ||
| sliceSelector: (state) => state.ui.modalsWithState | ||
| }) | ||
|
|
||
| export const { | ||
| hook: useCreateChatModal, | ||
| actions: createChatModalActions, | ||
| reducer: createChatModalReducer | ||
| } = createChatModal |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
packages/common/src/store/ui/inbox-unavailable-modal/index.ts
This file contains hidden or 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,26 @@ | ||
| import { Action } from '@reduxjs/toolkit' | ||
|
|
||
| import { ID } from 'models/Identifiers' | ||
|
|
||
| import { createModal } from '../modals/createModal' | ||
|
|
||
| export type InboxUnavailableModalState = { | ||
| userId?: ID | ||
| presetMessage?: string | ||
| onCancelAction?: Action | ||
| onSuccessAction?: Action | ||
| } | ||
|
|
||
| const inboxUnavailableModal = createModal<InboxUnavailableModalState>({ | ||
| initialState: { | ||
| isOpen: false | ||
| }, | ||
| reducerPath: 'inboxUnavailableModal', | ||
| sliceSelector: (state) => state.ui.modalsWithState | ||
| }) | ||
|
|
||
| export const { | ||
| hook: useInboxUnavailableModal, | ||
| actions: inboxUnavailableModalActions, | ||
| reducer: inboxUnavailableModalReducer | ||
| } = inboxUnavailableModal |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.