mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Fixes a long list of julian's UI bugs. Tested on both stateful and serverless. See videos on visual fixes.1a450bf6
-7477-40a4-a020-a5172b56ef4c92b40ecd
-d888-4fd6-af91-045e81a1843f Things to note: - I had to adjust the asset path here as locally on main the images were broken (the header for example).
32 lines
1 KiB
TypeScript
32 lines
1 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText, EuiLink } from '@elastic/eui';
|
|
|
|
export const GithubLink: React.FC<{
|
|
assetBasePath: string;
|
|
label: string;
|
|
href: string;
|
|
}> = ({ assetBasePath, label, href }) => {
|
|
return (
|
|
<EuiFlexGroup alignItems="center" gutterSize="xs" justifyContent="flexEnd">
|
|
<EuiFlexItem grow={false}>
|
|
<EuiIcon size="s" type={`${assetBasePath}/github.svg`} />
|
|
</EuiFlexItem>
|
|
<EuiFlexItem grow={false}>
|
|
<EuiText size="s">
|
|
<EuiLink target="_blank" href={href}>
|
|
{label}
|
|
</EuiLink>
|
|
</EuiText>
|
|
</EuiFlexItem>
|
|
</EuiFlexGroup>
|
|
);
|
|
};
|