Skip to content

Commit

Permalink
Add adhoc logo support
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Apr 11, 2023
1 parent 19a1170 commit 5285292
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
47 changes: 47 additions & 0 deletions assets/images/expensify-logo--adhoc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/ExpensifyWordmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {View} from 'react-native';
import ProductionLogo from '../../assets/images/expensify-wordmark.svg';
import DevLogo from '../../assets/images/expensify-logo--dev.svg';
import StagingLogo from '../../assets/images/expensify-logo--staging.svg';
import AdHocLogo from '../../expensify-logo--adhoc.svg';
import CONST from '../CONST';
import withEnvironment, {environmentPropTypes} from './withEnvironment';
import withWindowDimensions, {windowDimensionsPropTypes} from './withWindowDimensions';
Expand All @@ -24,7 +25,7 @@ const logoComponents = {

const ExpensifyWordmark = (props) => {
// PascalCase is required for React components, so capitalize the const here
const LogoComponent = logoComponents[props.environment];
const LogoComponent = logoComponents[props.environment] || AdHocLogo;
return (
<>
<View style={[
Expand Down

0 comments on commit 5285292

Please sign in to comment.