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

Sync back to develop #311

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions frontend/modules/apis/components/EnhancedApi.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { API } from '@stoplight/elements';
import { useState } from 'react';

import { Flex } from '@/components/lib/Flex';
import { Message } from '@/components/lib/Message';
Expand All @@ -23,21 +22,18 @@ import * as S from './styles';
*/

const EnhancedAPI = () => {
const [displayMessage, setDisplayMessage] = useState(true);
const { environment } = useSelectedProject();
const url = environment && config.url.eapiSpec[environment.net];

return (
<Flex stack>
{displayMessage && (
<Message
onClickButton={() => {
setDisplayMessage(false);
}}
>
<Text>Want to interact with RPC API? Check out the key tab for the setup guide.</Text>
{
<Message type="error">
<Text>
Enhanced API is being decomissioned by Dec 9, 2024. Please move to another solution before that date.
</Text>
</Message>
)}
}

<S.Root className="e-api">
{url ? <API apiDescriptionUrl={url} router="hash" layout="sidebar" /> : <Spinner center />}
Expand Down
2 changes: 0 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// this is a JSON5 file, comments are supported, you may wish to switch your syntax mode
// to json5 or jsonc
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
Expand Down
Loading