Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Jul 27, 2024
1 parent 26bd9ce commit b914f43
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Binary file added assets/images/ecomm-addon-ctb-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions assets/svg/transformStore.svg

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { Button, Card, Title } from '@newfold/ui-component-library';
import { ReactComponent as TransformLogo } from '../../../../assets/svg/transformStore.svg';
import ecommAddonIconUrl from 'Assets/images/ecomm-addon-ctb-icon.png';

const EcommAddonCTB = () => {
const EcommAddonCtbIcon = () => (
<img
src={ ecommAddonIconUrl }
width="44px"
height="48px"
alt={ __( 'eCommerce bundle upgrade icon', 'wp-plugin-bluehost' ) }
/>
);

const TransformStore = () => {
return (
<Card
className="wppbh-app-transform nfd-border-0 nfd-border-t md:nfd-border-t-0 nfd-shadow-none hover:nfd-bg-[#F2F9FE]"
Expand All @@ -10,7 +19,7 @@ const TransformStore = () => {
} }
>
<Card.Content>
<TransformLogo />
<EcommAddonCtbIcon />
<Title size="4" className="nfd-leading-normal nfd-my-4">
{ __( 'Transform your store!', 'wp-plugin-bluehost' ) }
</Title>
Expand All @@ -32,4 +41,4 @@ const TransformStore = () => {
);
};

export default TransformStore;
export default EcommAddonCTB;
4 changes: 2 additions & 2 deletions src/app/pages/pages-and-posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import BlogPosts from './blogPosts';
import BookingAndAppointments from './bookingAndAppointments';
import ProductsPages from './ProductsPages';
import AppStore from '../../data/store';
import TransformStore from './TransformStore';
import EcommAddonCTB from './ecommAddonCTB';

const PagesAndPosts = () => {
const { store } = useContext( AppStore );
Expand Down Expand Up @@ -82,7 +82,7 @@ const PagesAndPosts = () => {
window.NewfoldRuntime.isWoocommerceActive ? (
<BookingAndAppointments />
) : (
<TransformStore />
<EcommAddonCTB />
) }
</div>
</Container>
Expand Down

0 comments on commit b914f43

Please sign in to comment.