frontend :Removing Heroku Banner from Connect database page

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8389
GitOrigin-RevId: dfd709ef2dbb0f12f41f114022ed76b382fa7963
This commit is contained in:
Aaysha 2023-03-20 22:24:31 +05:30 committed by hasura-bot
parent 5ec4d6e91b
commit bf5f5a0e30
3 changed files with 0 additions and 27 deletions

View File

@ -1,10 +0,0 @@
import React from 'react';
import { ComponentMeta, Story } from '@storybook/react';
import { HerokuBanner } from './Banner';
export default {
title: 'features/Neon Integration/Heroku Banner',
component: HerokuBanner,
} as ComponentMeta<typeof HerokuBanner>;
export const Base: Story = () => <HerokuBanner />;

View File

@ -1,15 +0,0 @@
import React from 'react';
import { LearnMoreLink } from '../../../../../../../../new-components/LearnMoreLink';
import { GrHeroku } from 'react-icons/gr';
export function HerokuBanner() {
return (
<div className="flex items-center">
<GrHeroku size={15} className="mr-xs" color="#430098" />
<div className="text-sm text-gray-700">
Heroku free database integration support has been deprecated.{' '}
<LearnMoreLink href="https://hasura.io/docs/latest/databases/connect-db/cloud-databases/heroku/" />
</div>
</div>
);
}

View File

@ -12,7 +12,6 @@ import { mapDispatchToPropsEmpty } from '../../../../Common/utils/reactUtils';
import Tabbed from '../TabbedDataSourceConnection'; import Tabbed from '../TabbedDataSourceConnection';
import { NotFoundError } from '../../../../Error/PageNotFound'; import { NotFoundError } from '../../../../Error/PageNotFound';
import { getDataSources } from '../../../../../metadata/selector'; import { getDataSources } from '../../../../../metadata/selector';
import { HerokuBanner } from './Neon/components/HerokuBanner/Banner';
import { Neon } from './Neon'; import { Neon } from './Neon';
interface Props extends InjectedProps {} interface Props extends InjectedProps {}
@ -34,7 +33,6 @@ const CreateDataSource: React.FC<Props> = ({ dispatch, allDataSources }) => {
dispatch={dispatch} dispatch={dispatch}
/> />
</div> </div>
<HerokuBanner />
</div> </div>
</div> </div>
</Analytics> </Analytics>