Skip to content

Commit

Permalink
[Data Explorer] Implement data fetch logic in Discover 2.0
Browse files Browse the repository at this point in the history
Issue Resolve:
opensearch-project#4397

Signed-off-by: ananzh <ananzh@amazon.com>
  • Loading branch information
ananzh committed Jul 18, 2023
1 parent d1e058e commit f3d17ed
Show file tree
Hide file tree
Showing 12 changed files with 614 additions and 352 deletions.
33 changes: 0 additions & 33 deletions src/plugins/discover/public/application/components/discover.scss

This file was deleted.

317 changes: 0 additions & 317 deletions src/plugins/discover/public/application/components/discover.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { AppMountParameters } from '../../../../../../core/public';
import { useOpenSearchDashboards } from '../../../../../opensearch_dashboards_react/public';
import { DiscoverServices } from '../../../build_services';
import { TopNav } from './top_nav';
import { DiscoverTable } from './discover_table';

interface CanvasProps {
opts: {
Expand All @@ -17,11 +18,12 @@ interface CanvasProps {

export const Canvas = ({ opts }: CanvasProps) => {
const { services } = useOpenSearchDashboards<DiscoverServices>();

const { history: getHistory } = services;
const history = getHistory();
return (
<div>
<TopNav opts={opts} />
Canvas
<DiscoverTable services={services} history={history} />
</div>
);
};
Loading

0 comments on commit f3d17ed

Please sign in to comment.