-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1284 from xodio/tweak-1234-persistent-messages-by…
…-default Make snack bar messages persistent by default
- Loading branch information
Showing
10 changed files
with
81 additions
and
71 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export default { | ||
SUCCESS: 'Uploaded successfully', | ||
SUCCESS: { | ||
title: 'Uploaded successfully', | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import composeMessage from '../messages/composeMessage'; | ||
|
||
export const PATCH_FOR_NODE_IS_MISSING = 'Patch for this node is missing.'; | ||
|
||
export const libInstalled = (libName, version) => | ||
composeMessage(`${libName} @ ${version} installed successfully`); | ||
export const libInstalled = (libName, version) => ({ | ||
title: `${libName} @ ${version} installed successfully`, | ||
}); | ||
|
||
export const CLIPBOARD_RECURSION_PASTE_ERROR = composeMessage( | ||
'Canʼt paste a patch into itself' | ||
); | ||
export const clipboardMissingPatchPasteError = missingPatches => | ||
composeMessage( | ||
'Canʼt paste', | ||
`Canʼt find following patches: ${missingPatches}` | ||
); | ||
export const CLIPBOARD_RECURSION_PASTE_ERROR = { | ||
title: 'Canʼt paste a patch into itself', | ||
persistent: false, | ||
}; | ||
export const clipboardMissingPatchPasteError = missingPatches => ({ | ||
title: 'Canʼt paste', | ||
note: `Canʼt find following patches: ${missingPatches}`, | ||
}); | ||
|
||
export const LIB_SUGGESTER_TYPE_TO_BEGIN = | ||
'Type owner/libname to find a library'; | ||
export const LIB_SUGGESTER_NOTHING_FOUND = 'No library found'; | ||
|
||
export const NO_PATCH_TO_TRANSPILE = composeMessage( | ||
'No patch opened', | ||
'Open a patch to upload and try again' | ||
); | ||
export const NO_PATCH_TO_TRANSPILE = { | ||
title: 'No patch opened', | ||
solution: 'Open a patch to upload and try again', | ||
persistent: false, | ||
}; |
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