-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Showing
55 changed files
with
1,166 additions
and
795 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
# The GH actions don't seem to compile and verify themselves well when Prettier is applied to them | ||
.github/actions/javascript/**/index.js | ||
.well-known | ||
desktop/dist/**/*.js | ||
dist/**/*.js | ||
assets/animations | ||
android | ||
ios | ||
vendor | ||
package.json | ||
package-lock.json | ||
*.html | ||
*.yml | ||
*.yaml | ||
*.css | ||
*.scss | ||
*.md |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from 'react'; | ||
import {View, Text} from 'react-native'; | ||
import Button from './Button'; | ||
import AvatarWithDisplayName from './AvatarWithDisplayName'; | ||
import ExpensifyWordmark from './ExpensifyWordmark'; | ||
import compose from '../libs/compose'; | ||
import withWindowDimensions, {windowDimensionsPropTypes} from './withWindowDimensions'; | ||
import withLocalize, {withLocalizePropTypes} from './withLocalize'; | ||
import reportPropTypes from '../pages/reportPropTypes'; | ||
import CONST from '../CONST'; | ||
import styles from '../styles/styles'; | ||
import * as Session from '../libs/actions/Session'; | ||
|
||
const propTypes = { | ||
/** The report currently being looked at */ | ||
report: reportPropTypes, | ||
|
||
...windowDimensionsPropTypes, | ||
...withLocalizePropTypes, | ||
}; | ||
|
||
const defaultProps = { | ||
report: {}, | ||
}; | ||
|
||
const AnonymousReportFooter = (props) => ( | ||
<View style={styles.anonymousRoomFooter}> | ||
<View style={[styles.flexRow]}> | ||
<AvatarWithDisplayName | ||
report={props.report} | ||
size={CONST.AVATAR_SIZE.MEDIUM} | ||
isAnonymous | ||
/> | ||
</View> | ||
<View style={[styles.flexRow, styles.alignItemsCenter]}> | ||
<View style={styles.mr4}> | ||
<View style={[props.isSmallScreenWidth ? styles.alignItemsStart : styles.alignItemsEnd]}> | ||
<ExpensifyWordmark style={styles.anonymousRoomFooterLogo} /> | ||
</View> | ||
<Text style={[styles.textNormal, styles.textWhite]}>{props.translate('anonymousReportFooter.logoTagline')}</Text> | ||
</View> | ||
<View style={styles.anonymousRoomFooterSignInButton}> | ||
<Button | ||
medium | ||
success | ||
text={props.translate('common.signIn')} | ||
onPress={() => Session.signOutAndRedirectToSignIn()} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
|
||
AnonymousReportFooter.propTypes = propTypes; | ||
AnonymousReportFooter.defaultProps = defaultProps; | ||
AnonymousReportFooter.displayName = 'AnonymousReportFooter'; | ||
|
||
export default compose(withWindowDimensions, withLocalize)(AnonymousReportFooter); |
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
Oops, something went wrong.