-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f451c92
commit 5827b59
Showing
16 changed files
with
264 additions
and
51 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
app/components/Approvals/InstallSnapApproval/InstallSnapApproval.constants.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
///: BEGIN:ONLY_INCLUDE_IF(external-snaps) | ||
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps) | ||
export const SNAP_INSTALL_FLOW = 'snap-install-flow'; | ||
export const SNAP_INSTALL_OK = 'snap-install-ok'; | ||
///: END:ONLY_INCLUDE_IF |
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
2 changes: 1 addition & 1 deletion
2
...components/Approvals/InstallSnapApproval/components/InstallSnapConnectionRequest/index.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
2 changes: 1 addition & 1 deletion
2
...proval/components/InstallSnapConnectionRequest/test/InstallSnapConnectionRequest.test.tsx
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
9 changes: 8 additions & 1 deletion
9
app/components/Approvals/InstallSnapApproval/components/index.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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
///: BEGIN:ONLY_INCLUDE_IF(external-snaps) | ||
/* eslint-disable import/prefer-default-export */ | ||
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps) | ||
import { InstallSnapConnectionRequest } from './InstallSnapConnectionRequest'; | ||
///: END:ONLY_INCLUDE_IF | ||
///: BEGIN:ONLY_INCLUDE_IF(external-snaps) | ||
import { InstallSnapSuccess } from './InstallSnapSuccess'; | ||
import { InstallSnapError } from './InstallSnapError'; | ||
import { InstallSnapPermissionsRequest } from './InstallSnapPermissionsRequest'; | ||
///: END:ONLY_INCLUDE_IF | ||
|
||
///: BEGIN:ONLY_INCLUDE_IF(external-snaps) | ||
export { InstallSnapPermissionsRequest }; | ||
export { InstallSnapError }; | ||
export { InstallSnapSuccess }; | ||
///: END:ONLY_INCLUDE_IF | ||
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps) | ||
export { InstallSnapConnectionRequest }; | ||
///: END:ONLY_INCLUDE_IF |
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,3 @@ | ||
///: BEGIN:ONLY_INCLUDE_IF(external-snaps) | ||
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps) | ||
export { default } from './InstallSnapApproval'; | ||
///: END:ONLY_INCLUDE_IF |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
///: BEGIN:ONLY_INCLUDE_IF(preinstalled-snaps,external-snaps) | ||
import { StyleSheet } from 'react-native'; | ||
import { Theme } from '../../../../util/theme/models'; | ||
|
||
/** | ||
* | ||
* @param params Style sheet params. | ||
* @param params.theme App theme from ThemeContext. | ||
* @param params.vars Inputs that the style sheet depends on. | ||
* @returns StyleSheet object. | ||
*/ | ||
const styleSheet = (params: { theme: Theme }) => { | ||
const { theme } = params; | ||
const { colors } = theme; | ||
return StyleSheet.create({ | ||
avatar: { | ||
backgroundColor: colors.background.alternativeHover, | ||
}, | ||
fallbackAvatar: { | ||
backgroundColor: colors.background.alternativeHover, | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
color: colors.text.alternative, | ||
}, | ||
fallbackAvatarText: { | ||
textTransform: 'uppercase', | ||
}, | ||
badge: { | ||
backgroundColor: colors.info.default, | ||
color: colors.info.inverse, | ||
borderColor: colors.background.alternative, | ||
borderWidth: 2, | ||
}, | ||
}); | ||
}; | ||
|
||
export default styleSheet; | ||
///: END:ONLY_INCLUDE_IF |
Oops, something went wrong.