Skip to content

Commit

Permalink
addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 3, 2020
1 parent d9d1d6a commit 9111811
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions x-pack/plugins/observability/public/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,20 @@ const Page = styled.div`
export const Home = () => {
const { core } = usePluginContext();

useEffect(
() => {
core.chrome.setBreadcrumbs([
{
text: i18n.translate('xpack.observability.home.breadcrumb.observability', {
defaultMessage: 'Observability',
}),
},
{
text: i18n.translate('xpack.observability.home.breadcrumb.gettingStarted', {
defaultMessage: 'Getting started',
}),
},
]);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
useEffect(() => {
core.chrome.setBreadcrumbs([
{
text: i18n.translate('xpack.observability.home.breadcrumb.observability', {
defaultMessage: 'Observability',
}),
},
{
text: i18n.translate('xpack.observability.home.breadcrumb.gettingStarted', {
defaultMessage: 'Getting started',
}),
},
]);
}, [core]);

return (
<Container>
Expand Down Expand Up @@ -158,7 +154,7 @@ export const Home = () => {
<EuiSpacer size="xxl" />
<EuiFlexGroup direction="column">
{/* title and description */}
<EuiFlexItem style={{ maxWidth: 567 }}>
<EuiFlexItem style={{ maxWidth: '50%' }}>
<EuiTitle size="s">
<h2>
{i18n.translate('xpack.observability.home.sectionTitle', {
Expand Down Expand Up @@ -191,7 +187,7 @@ export const Home = () => {
size="xl"
alt="observability overview image"
url={core.http.basePath.prepend(
'/plugins/observability/assets/observability-overview.png'
'/plugins/observability/assets/observability_overview.png'
)}
/>
</EuiFlexItem>
Expand All @@ -206,7 +202,6 @@ export const Home = () => {
fill
iconType="sortRight"
iconSide="right"
style={{ width: 175 }}
href={core.http.basePath.prepend('/app/home#/tutorial_directory/logging')}
>
{i18n.translate('xpack.observability.home.getStatedButton', {
Expand Down Expand Up @@ -238,7 +233,7 @@ export const Home = () => {
<EuiFlexItem>
<EuiFlexGroup justifyContent="center">
{tryItOutItemsSection.map((item) => (
<EuiFlexItem grow={false} key={item.id} style={{ width: 260 }}>
<EuiFlexItem grow={false} key={item.id}>
<EuiPanel
hasShadow
paddingSize="s"
Expand Down

0 comments on commit 9111811

Please sign in to comment.