Design tweaks to add-story-button hover

This commit is contained in:
Alvaro 2022-11-10 14:01:40 -07:00 committed by GitHub
parent 810cbb5fe5
commit 2278bf2994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 12 deletions

View file

@ -19,6 +19,7 @@ export type PropsType = {
i18n: LocalizerType;
moduleClassName?: string;
onAddStory: (file?: File) => unknown;
onContextMenuShowingChanged?: (value: boolean) => void;
showToast: ShowToastActionCreatorType;
};
@ -28,11 +29,13 @@ export const StoriesAddStoryButton = ({
moduleClassName,
onAddStory,
showToast,
onContextMenuShowingChanged,
}: PropsType): JSX.Element => {
return (
<ContextMenu
ariaLabel={i18n('Stories__add')}
i18n={i18n}
onMenuShowingChanged={onContextMenuShowingChanged}
menuOptions={[
{
label: i18n('Stories__add-story--media'),