Product fruit updates.
This commit is contained in:
@@ -165,6 +165,8 @@ export function App({
|
|||||||
>
|
>
|
||||||
<ProductFruits
|
<ProductFruits
|
||||||
workspaceCode={InstanceRenderMgr({imex:null, rome: null, promanager:"aoJoEifvezYI0Z0P"})}
|
workspaceCode={InstanceRenderMgr({imex:null, rome: null, promanager:"aoJoEifvezYI0Z0P"})}
|
||||||
|
debug
|
||||||
|
|
||||||
language="en" user={{
|
language="en" user={{
|
||||||
email: currentUser.email,
|
email: currentUser.email,
|
||||||
username: currentUser.email,
|
username: currentUser.email,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FloatButton, Layout, Spin } from "antd";
|
import { FloatButton, Layout, Spin, Collapse, Button, Space, Tag } from "antd";
|
||||||
// import preval from "preval.macro";
|
// import preval from "preval.macro";
|
||||||
import React, { lazy, Suspense, useEffect, useState } from "react";
|
import React, { lazy, Suspense, useEffect, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -200,7 +200,7 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
export function Manage({conflict, bodyshop,enableJoyRide,joyRideSteps,setJoyRideFinished}) {
|
export function Manage({conflict, bodyshop,enableJoyRide,joyRideSteps,setJoyRideFinished}) {
|
||||||
const {t} = useTranslation();
|
const {t} = useTranslation();
|
||||||
const [chatVisible] = useState(false);
|
const [chatVisible] = useState(false);
|
||||||
|
const [tours, setTours] = useState([])
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -526,9 +526,7 @@ export function Manage({conflict, bodyshop,enableJoyRide,joyRideSteps,setJoyRide
|
|||||||
imex: t('titles.imexonline'),
|
imex: t('titles.imexonline'),
|
||||||
rome: t('titles.romeonline'),
|
rome: t('titles.romeonline'),
|
||||||
promanager: t('titles.promanager'),
|
promanager: t('titles.promanager'),
|
||||||
})} - ${
|
})} - ${import.meta.env.VITE_APP_GIT_SHA_DATE}`}
|
||||||
import.meta.env.VITE_APP_GIT_SHA_DATE
|
|
||||||
}`}
|
|
||||||
</div>
|
</div>
|
||||||
<div id="noticeable-widget" style={{ marginLeft: '1rem' }} />
|
<div id="noticeable-widget" style={{ marginLeft: '1rem' }} />
|
||||||
</div>
|
</div>
|
||||||
@@ -536,6 +534,31 @@ export function Manage({conflict, bodyshop,enableJoyRide,joyRideSteps,setJoyRide
|
|||||||
Disclaimer & Notices
|
Disclaimer & Notices
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
{InstanceRenderManager({
|
||||||
|
promanager: (
|
||||||
|
<Collapse>
|
||||||
|
<Collapse.Panel header="DEVELOPMENT ONLY - ProductFruits Tours">
|
||||||
|
<Space>
|
||||||
|
<Button
|
||||||
|
onClick={async () => {
|
||||||
|
setTours(await window.productFruits.api.tours.getTours());
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Get Tours
|
||||||
|
</Button>
|
||||||
|
{tours.map((tour) => (
|
||||||
|
<Tag
|
||||||
|
key={tour.id}
|
||||||
|
onClick={() => window.productFruits.api.tours.tryStartTour(tour.id)}
|
||||||
|
>
|
||||||
|
{tour.name}
|
||||||
|
</Tag>
|
||||||
|
))}
|
||||||
|
</Space>
|
||||||
|
</Collapse.Panel>
|
||||||
|
</Collapse>
|
||||||
|
),
|
||||||
|
})}
|
||||||
</Footer>
|
</Footer>
|
||||||
</Layout>
|
</Layout>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user