-
Notifications
You must be signed in to change notification settings - Fork 5
/
SamplesFallback.tsx
40 lines (35 loc) · 1.75 KB
/
SamplesFallback.tsx
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
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as React from "react";
import './SamplesFallback.css'
export class SamplesFallback extends React.Component<any, any> {
public render(): JSX.Element {
let sbRoute = window.location.pathname;
sbRoute = sbRoute.replace("/react-demos","");
sbRoute = sbRoute.replace("/samples","");
let sbUrl = window.location.origin;
if (sbUrl.indexOf("localhost") >= 0) {
sbUrl = "https://localhost:4200/react-demos/samples";
} else if (sbUrl.indexOf("staging.infragistics.com") >= 0) {
sbUrl = "https://staging.infragistics.com/react-demos/samples";
} else { // we are on production{ // we are on production
sbUrl = "https://infragistics.com/react-demos/samples";
}
var sbHome = "https://www.infragistics.com/react-demos/samples";
var sbMissing = "https://www.infragistics.com/react-demos" + sbRoute;
return (
<div className="container sample vertical sbFallbackContainer">
<img className="sbFallbackIcon" src="/assets/comingSoon.svg"></img>
<div className="sbFallbackBackground">
<div className="sbFallbackHeader">Coming Soon...</div>
<div className="sbFallbackCaption">
This <a href={sbMissing} title={sbRoute} >example</a> is under development. We are almost done!
</div>
<div className="sbFallbackCaption">
<span>
Meanwhile, you can explore all Ignite UI for React samples on this <a href={sbHome} target="_blank" rel="noreferrer">website</a>
</span>
</div>
</div>
</div>
);
}
}