forked from jenkinsci/pipeline-graph-view-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.tsx
More file actions
27 lines (23 loc) · 682 Bytes
/
app.tsx
File metadata and controls
27 lines (23 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import "./app.scss";
import "./multi-pipeline-graph/styles/main.scss";
import { FunctionComponent } from "react";
import {
I18NProvider,
LocaleProvider,
ResourceBundleName,
} from "../common/i18n/index.ts";
import { MultiPipelineGraph } from "./multi-pipeline-graph/main/MultiPipelineGraph.tsx";
const App: FunctionComponent = () => {
const locale = document.getElementById("multiple-pipeline-root")!.dataset
.userLocale!;
return (
<div>
<LocaleProvider locale={locale}>
<I18NProvider bundles={[ResourceBundleName.messages]}>
<MultiPipelineGraph />
</I18NProvider>
</LocaleProvider>
</div>
);
};
export default App;