Skip to content

Commit

Permalink
address design feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Sep 29, 2020
1 parent f5205b8 commit 2b5bb3b
Showing 1 changed file with 14 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ import React, { FunctionComponent, useState } from 'react';
import {
EuiButton,
EuiPopover,
EuiPopoverFooter,
EuiButtonEmpty,
EuiPopoverTitle,
EuiSelectable,
EuiHorizontalRule,
EuiFlexGroup,
EuiFlexItem,
EuiSpacer,
} from '@elastic/eui';

import { Document } from '../../../types';
Expand Down Expand Up @@ -117,26 +114,19 @@ export const DocumentsDropdown: FunctionComponent<Props> = ({
)}
</EuiSelectable>

<EuiHorizontalRule margin="xs" />

<EuiSpacer size="s" />

<EuiFlexGroup justifyContent="center" gutterSize="xs">
<EuiFlexItem grow={false}>
<EuiButton
size="s"
onClick={() => {
openFlyout('documents');
setShowPopover(false);
}}
data-test-subj="editDocumentsButton"
>
{i18nTexts.addDocumentsButtonLabel}
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>

<EuiSpacer size="s" />
<EuiPopoverFooter>
<EuiButton
size="s"
fullWidth
onClick={() => {
openFlyout('documents');
setShowPopover(false);
}}
data-test-subj="editDocumentsButton"
>
{i18nTexts.addDocumentsButtonLabel}
</EuiButton>
</EuiPopoverFooter>
</EuiPopover>
);
};

0 comments on commit 2b5bb3b

Please sign in to comment.