mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-05 23:23:00 +00:00
fix tour page not showing (#13902)
This commit is contained in:
parent
2adce103f4
commit
ef2a27a217
@ -69,7 +69,10 @@ const ActivityFeedListV1 = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return isEmpty(entityThread) ? (
|
return isEmpty(entityThread) ? (
|
||||||
<div className="h-full p-x-md" data-testid="no-data-placeholder-container">
|
<div
|
||||||
|
className="h-full p-x-md"
|
||||||
|
data-testid="no-data-placeholder-container"
|
||||||
|
id="feedData">
|
||||||
<ErrorPlaceHolder
|
<ErrorPlaceHolder
|
||||||
icon={
|
icon={
|
||||||
isTaskTab ? (
|
isTaskTab ? (
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect, useMemo } from 'react';
|
||||||
import Tour from '../../components/tour/Tour';
|
import Tour from '../../components/tour/Tour';
|
||||||
import { useTourProvider } from '../../components/TourProvider/TourProvider';
|
import { useTourProvider } from '../../components/TourProvider/TourProvider';
|
||||||
import { TOUR_SEARCH_TERM } from '../../constants/constants';
|
import { TOUR_SEARCH_TERM } from '../../constants/constants';
|
||||||
@ -39,8 +39,8 @@ const TourPage = () => {
|
|||||||
updateIsTourOpen(true);
|
updateIsTourOpen(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const getCurrentPage = (page: CurrentTourPageType) => {
|
const currentPageComponent = useMemo(() => {
|
||||||
switch (page) {
|
switch (currentTourPage) {
|
||||||
case CurrentTourPageType.MY_DATA_PAGE:
|
case CurrentTourPageType.MY_DATA_PAGE:
|
||||||
return <MyDataPageV1 />;
|
return <MyDataPageV1 />;
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ const TourPage = () => {
|
|||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
}, [currentTourPage]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -65,7 +65,7 @@ const TourPage = () => {
|
|||||||
updateTourPage,
|
updateTourPage,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
{getCurrentPage(currentTourPage)}
|
{currentPageComponent}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -24,10 +24,12 @@ interface ArgObject {
|
|||||||
clearSearchTerm: () => void;
|
clearSearchTerm: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getTourSteps = (args: ArgObject) => {
|
export const getTourSteps = ({
|
||||||
const { searchTerm, clearSearchTerm, updateActiveTab, updateTourPage } = args;
|
searchTerm,
|
||||||
|
clearSearchTerm,
|
||||||
return [
|
updateActiveTab,
|
||||||
|
updateTourPage,
|
||||||
|
}: ArgObject) => [
|
||||||
{
|
{
|
||||||
content: () => (
|
content: () => (
|
||||||
<p>
|
<p>
|
||||||
@ -287,4 +289,3 @@ export const getTourSteps = (args: ArgObject) => {
|
|||||||
selector: '#lineageDetails',
|
selector: '#lineageDetails',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user