mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Search] update default getting started language to curl (#165341)
## Summary Updated the default language for the dedicated getting started page from Javascript to cURL
This commit is contained in:
parent
d1c317da40
commit
7907f9f4ec
1 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ import { OverviewLogic } from '../../overview.logic';
|
|||
import { GenerateApiKeyModal } from '../generate_api_key_modal/modal';
|
||||
|
||||
import { consoleDefinition } from './languages/console';
|
||||
import { javascriptDefinition } from './languages/javascript';
|
||||
import { curlDefinition } from './languages/curl';
|
||||
import { languageDefinitions } from './languages/languages';
|
||||
|
||||
const DEFAULT_URL = 'https://localhost:9200';
|
||||
|
@ -85,8 +85,7 @@ export const APIGettingStarted = () => {
|
|||
};
|
||||
const assetBasePath = http.basePath.prepend(`/plugins/${PLUGIN_ID}/assets/client_libraries/`);
|
||||
|
||||
const [selectedLanguage, setSelectedLanguage] =
|
||||
useState<LanguageDefinition>(javascriptDefinition);
|
||||
const [selectedLanguage, setSelectedLanguage] = useState<LanguageDefinition>(curlDefinition);
|
||||
return (
|
||||
<>
|
||||
{isGenerateModalOpen && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue