Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

James/en/1294 #1487

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion shesha-reactjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import { Alert, Card, Col, Row } from 'antd';
import data from 'public/meta.json';
import React from 'react';
import React, {useMemo} from 'react';
import { CollapsiblePanel } from '@/components';
import styled from 'styled-components';
import { PageWithLayout } from '@/interfaces';
import { MainLayout } from '@/components';
import {EmptyState} from '@/components';

/**
* There was an error
Expand All @@ -22,6 +23,16 @@ const StyledAlert: any = styled(Alert)`
`;

const Home: PageWithLayout<{}> = () => {

const getBrowerVersion = useMemo(()=>{
const appVersion = navigator.appVersion?.split("Version/")[1]?.split(" ")[0];
return appVersion;
},[])

if((parseInt(getBrowerVersion) <= parseInt(getBrowerVersion) - 3) && navigator.vendor === "Apple Computer, Inc.") {
return <EmptyState noDataIcon="WarningOutlined" noDataText="Your browser is not supported" noDataSecondaryText={`The version of Safari (${getBrowerVersion}) you are using is not supported. Please update to the latest version.`}/>
}

return (
<MainLayout noPadding>
<CollapsiblePanel header="Plugins">
Expand Down