Skip to content

Commit

Permalink
add light theme ExpensifyApproved! logo
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Jun 4, 2024
1 parent 42de07c commit 352e354
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 2 deletions.
91 changes: 91 additions & 0 deletions assets/images/subscription-details__approvedlogo--light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/Icon/Illustrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import TrashCan from '@assets/images/simple-illustrations/simple-illustration__t
import TreasureChest from '@assets/images/simple-illustrations/simple-illustration__treasurechest.svg';
import WalletAlt from '@assets/images/simple-illustrations/simple-illustration__wallet-alt.svg';
import Workflows from '@assets/images/simple-illustrations/simple-illustration__workflows.svg';
import ExpensifyApprovedLogoLight from '@assets/images/subscription-details__approvedlogo--light.svg';
import ExpensifyApprovedLogo from '@assets/images/subscription-details__approvedlogo.svg';

export {
Expand Down Expand Up @@ -184,6 +185,7 @@ export {
SubscriptionAnnual,
SubscriptionPPU,
ExpensifyApprovedLogo,
ExpensifyApprovedLogoLight,
SendMoney,
CheckmarkCircle,
};
6 changes: 4 additions & 2 deletions src/pages/settings/Subscription/SubscriptionDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ const options: Array<OptionsPickerItem<SubscriptionVariant>> = [
function SubscriptionDetails() {
const {translate} = useLocalize();
const styles = useThemeStyles();

const [privateSubscription] = useOnyx(ONYXKEYS.NVP_PRIVATE_SUBSCRIPTION);
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
const [preferredTheme] = useOnyx(ONYXKEYS.PREFERRED_THEME);

const [selectedOption, setSelectedOption] = useState(privateSubscription?.type ?? CONST.SUBSCRIPTION.TYPE.ANNUAL);
const [account] = useOnyx(ONYXKEYS.ACCOUNT);

const onOptionSelected = (option: SubscriptionVariant) => {
setSelectedOption(option);
Expand Down Expand Up @@ -79,7 +81,7 @@ function SubscriptionDetails() {
{!!account?.isApprovedAccountant || !!account?.isApprovedAccountantClient ? (
<View style={[styles.borderedContentCard, styles.p5, styles.mt5]}>
<Icon
src={Illustrations.ExpensifyApprovedLogo}
src={preferredTheme === CONST.THEME.LIGHT ? Illustrations.ExpensifyApprovedLogoLight : Illustrations.ExpensifyApprovedLogo}
width={variables.modalTopIconWidth}
height={variables.menuIconSize}
/>
Expand Down

0 comments on commit 352e354

Please sign in to comment.