[ML] Adding categorization job wizard icon (#54721)

This commit is contained in:
James Gowdy 2020-01-14 15:56:08 +00:00 committed by GitHub
parent e20fbd8e8f
commit c2abc12c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
export const CategorizationIcon = (
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M16 32C7.16344 32 0 24.8366 0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16H30C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30V32Z"
fill="#343741"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 15H23V17H17V23H15V17H9V15H15V9H17V15ZM32 30V32H20V30H32ZM32 22L20 22V24L32 24V22ZM32 26V28H20V26H32Z"
fill="#017D73"
/>
</svg>
);

View file

@ -24,6 +24,7 @@ import { DataRecognizer } from '../../../../components/data_recognizer';
import { addItemToRecentlyAccessed } from '../../../../util/recently_accessed';
import { timeBasedIndexCheck } from '../../../../util/index_utils';
import { CreateJobLinkCard } from '../../../../components/create_job_link_card';
import { CategorizationIcon } from './categorization_job_icon';
export const Page: FC = () => {
const kibanaContext = useKibanaContext();
@ -154,7 +155,7 @@ export const Page: FC = () => {
{
href: getUrl('#jobs/new_job/categorization'),
icon: {
type: 'createAdvancedJob',
type: CategorizationIcon,
ariaLabel: i18n.translate('xpack.ml.newJob.wizard.jobType.categorizationAriaLabel', {
defaultMessage: 'Categorization job',
}),