@selfcommunity/react-ui 1.2.4-alpha.1 → 1.2.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -1
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +1 -1
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/cjs/components/Checkout/CheckoutHeaderInfoWidget.js +1 -1
- package/lib/cjs/components/CourseDashboard/Header.js +1 -1
- package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +3 -3
- package/lib/cjs/components/Courses/Courses.js +4 -2
- package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/cjs/components/Editor/Editor.js +3 -1
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -1
- package/lib/cjs/components/EventHeader/EventHeader.js +1 -1
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +1 -1
- package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +1 -1
- package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +1 -1
- package/lib/cjs/components/Events/Events.js +4 -3
- package/lib/cjs/components/Events/LocationEventsFilter.js +2 -1
- package/lib/cjs/components/Feed/Feed.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +1 -1
- package/lib/cjs/components/Footer/Footer.js +2 -2
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +1 -1
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +1 -1
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +4 -3
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +7 -2
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -1
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +10 -8
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -7
- package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +1 -1
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.js +1 -1
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +2 -1
- package/lib/cjs/components/VoteButton/VoteButton.js +2 -1
- package/lib/cjs/shared/ContributionActionsMenu/index.js +1 -1
- package/lib/cjs/shared/EventActionsMenu/index.js +2 -1
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +1 -1
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +1 -1
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +4 -2
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +1 -1
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
- package/lib/esm/components/Checkout/CheckoutHeaderInfoWidget.js +1 -1
- package/lib/esm/components/CourseDashboard/Header.js +1 -1
- package/lib/esm/components/CourseDashboard/Student/ActionButton.js +3 -3
- package/lib/esm/components/Courses/Courses.js +5 -3
- package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
- package/lib/esm/components/Editor/Editor.js +4 -2
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -1
- package/lib/esm/components/EventHeader/EventHeader.js +1 -1
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +1 -1
- package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -1
- package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +1 -1
- package/lib/esm/components/Events/Events.js +5 -4
- package/lib/esm/components/Events/LocationEventsFilter.js +3 -2
- package/lib/esm/components/Feed/Feed.js +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +1 -1
- package/lib/esm/components/Footer/Footer.js +2 -2
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +1 -1
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +1 -1
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +4 -3
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +8 -3
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -1
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +11 -9
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -7
- package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
- package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +1 -1
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
- package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.js +1 -1
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +3 -2
- package/lib/esm/components/VoteButton/VoteButton.js +3 -2
- package/lib/esm/shared/ContributionActionsMenu/index.js +1 -1
- package/lib/esm/shared/EventActionsMenu/index.js +3 -2
- package/lib/umd/react-ui.js +1 -1
- package/package.json +8 -8
|
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useState } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { useThemeProps } from '@mui/system';
|
|
6
6
|
import { Avatar, Box, List, ListItem, Tab, Tabs, Typography, Icon, styled, Button } from '@mui/material';
|
|
7
|
-
import { FormattedMessage } from 'react-intl';
|
|
7
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
8
|
import { useSCFetchVote, useSCUser } from '@selfcommunity/react-core';
|
|
9
9
|
import BaseDialog from '../../shared/BaseDialog';
|
|
10
10
|
import CentralProgress from '../../shared/CentralProgress';
|
|
@@ -81,6 +81,7 @@ export default function VoteAudienceButton(inProps) {
|
|
|
81
81
|
contributionType,
|
|
82
82
|
contribution
|
|
83
83
|
});
|
|
84
|
+
const intl = useIntl();
|
|
84
85
|
// EFFECTS
|
|
85
86
|
useEffect(() => {
|
|
86
87
|
if (!isLoadingVoteList && open) {
|
|
@@ -115,5 +116,5 @@ export default function VoteAudienceButton(inProps) {
|
|
|
115
116
|
return _jsx(FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.title", id: "ui.voteAudienceButton.dialog.title" });
|
|
116
117
|
}
|
|
117
118
|
}, [tab, reactions, contributionReactionsCount]);
|
|
118
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Root, Object.assign({ onClick: handleOpen, disabled: isLoading || Boolean(error) || contributionVoteCount === 0, loading: isLoading, className: classNames(classes.root, className) }, rest, { children: [audienceIcon, "\u00A0", scUserContext.user && contributionVoted ? (contributionVoteCount === 1 ? (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votedOnlyByMe", defaultMessage: "ui.voteAudienceButton.votedOnlyByMe" })) : (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votedByMe", defaultMessage: "ui.voteAudienceButton.votedByMe", values: { total: contributionVoteCount - 1 } }))) : (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votes", defaultMessage: "ui.voteAudienceButton.votes", values: { total: contributionVoteCount } }))] })), open && (_jsx(DialogRoot, Object.assign({ title: dialogTitle, onClose: handleClose, open: open, DialogContentProps: {} }, { children: isLoadingVoteList && !voteList ? (_jsx(CentralProgress, { size: 50 })) : (_jsx(InfiniteScroll, Object.assign({ dataLength: voteList.length, next: () => handleFetchVoteList({}), hasMoreNext: voteListHasNext, loaderNext: _jsx(CentralProgress, { size: 30 }), height: 400, endMessage: _jsx(Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: _jsx(FormattedMessage, { id: "ui.voteAudienceButton.dialog.end", defaultMessage: "ui.voteAudienceButton.dialog.end" }) })) }, { children: _jsx(List, { children: voteList.map((vote) => (_jsx(ListItem, { children: _jsx(User, { elevation: 0, user: vote.user, badgeContent: _jsx(Avatar, Object.assign({ className: classes.dialogVoteBadge }, { children: vote.reaction ? (_jsx(Icon, { children: _jsx("img", { alt: vote.reaction.label, src: vote.reaction.image, width: "100%", height: "100%" }) })) : (_jsx(Icon, { children: "thumb_up" })) })), onClick: handleClose }) }, vote.user.id))) }) }))) })))] }));
|
|
119
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Root, Object.assign({ title: intl.formatMessage({ id: 'ui.voteAudienceButton.title', defaultMessage: 'ui.voteAudienceButton.title' }), onClick: handleOpen, disabled: isLoading || Boolean(error) || contributionVoteCount === 0, loading: isLoading, className: classNames(classes.root, className) }, rest, { children: [audienceIcon, "\u00A0", scUserContext.user && contributionVoted ? (contributionVoteCount === 1 ? (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votedOnlyByMe", defaultMessage: "ui.voteAudienceButton.votedOnlyByMe" })) : (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votedByMe", defaultMessage: "ui.voteAudienceButton.votedByMe", values: { total: contributionVoteCount - 1 } }))) : (_jsx(FormattedMessage, { id: "ui.voteAudienceButton.votes", defaultMessage: "ui.voteAudienceButton.votes", values: { total: contributionVoteCount } }))] })), open && (_jsx(DialogRoot, Object.assign({ title: dialogTitle, onClose: handleClose, open: open, DialogContentProps: {} }, { children: isLoadingVoteList && !voteList ? (_jsx(CentralProgress, { size: 50 })) : (_jsx(InfiniteScroll, Object.assign({ dataLength: voteList.length, next: () => handleFetchVoteList({}), hasMoreNext: voteListHasNext, loaderNext: _jsx(CentralProgress, { size: 30 }), height: 400, endMessage: _jsx(Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: _jsx(FormattedMessage, { id: "ui.voteAudienceButton.dialog.end", defaultMessage: "ui.voteAudienceButton.dialog.end" }) })) }, { children: _jsx(List, { children: voteList.map((vote) => (_jsx(ListItem, { children: _jsx(User, { elevation: 0, user: vote.user, badgeContent: _jsx(Avatar, Object.assign({ className: classes.dialogVoteBadge }, { children: vote.reaction ? (_jsx(Icon, { children: _jsx("img", { alt: vote.reaction.label, src: vote.reaction.image, width: "100%", height: "100%" }) })) : (_jsx(Icon, { children: "thumb_up" })) })), onClick: handleClose }) }, vote.user.id))) }) }))) })))] }));
|
|
119
120
|
}
|
|
@@ -5,7 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { useThemeProps } from '@mui/system';
|
|
6
6
|
import { IconButton, Paper, Popper, Tooltip, useMediaQuery, useTheme, styled, Icon, Button } from '@mui/material';
|
|
7
7
|
import { UserUtils, useSCContext, useSCFetchVote, useSCUser } from '@selfcommunity/react-core';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
8
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import { useSnackbar } from 'notistack';
|
|
10
10
|
import { catchUnauthorizedActionByBlockedUser } from '../../utils/errors';
|
|
11
11
|
const PREFIX = 'SCVoteButton';
|
|
@@ -123,6 +123,7 @@ export default function VoteButton(inProps) {
|
|
|
123
123
|
});
|
|
124
124
|
const theme = useTheme();
|
|
125
125
|
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
|
126
|
+
const intl = useIntl();
|
|
126
127
|
// MEMO
|
|
127
128
|
const rootProps = useMemo(() => {
|
|
128
129
|
if (!reactions.default) {
|
|
@@ -134,7 +135,7 @@ export default function VoteButton(inProps) {
|
|
|
134
135
|
};
|
|
135
136
|
}, [reactions]);
|
|
136
137
|
// RENDER
|
|
137
|
-
const button = (_jsx(Root, Object.assign({ onClick: isMobile && reactions.reactions
|
|
138
|
+
const button = (_jsx(Root, Object.assign({ title: intl.formatMessage({ id: 'ui.voteButton.title', defaultMessage: 'ui.voteButton.title' }), onClick: isMobile && reactions.reactions
|
|
138
139
|
? handleMouseEnter
|
|
139
140
|
: () => handleVoteAction(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: classNames(classes.root, className, {
|
|
140
141
|
[classes.voted]: scUserContext.user && contributionVoted
|
|
@@ -808,7 +808,7 @@ export default function ContributionActionsMenu(props) {
|
|
|
808
808
|
*/
|
|
809
809
|
return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, { children: [_jsx(IconButton, Object.assign({ ref: (ref) => {
|
|
810
810
|
popperRef.current = ref;
|
|
811
|
-
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small" }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? (_jsxs("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? _jsx(Icon, { children: "visibility_off" }) : _jsx(Icon, { children: "delete" }), _jsx(Icon, { children: "expand_more" })] }))) : (_jsx(Icon, { children: "more_vert" })) })), open && (_jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : (_jsx(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => (_jsx(Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: _jsx(Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: _jsx(ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && (_jsx(ConfirmDialog, Object.assign({ open: openConfirmDialog }, (currentAction === DELETE_CONTRIBUTION
|
|
811
|
+
}, "aria-haspopup": "true", onClick: handleOpen, className: classes.button, size: "small", title: intl.formatMessage({ id: 'ui.contributionActionMenu.button.title', defaultMessage: 'ui.contributionActionMenu.button.title' }) }, { children: contributionObj && (contributionObj.collapsed || contributionObj.deleted) ? (_jsxs("span", Object.assign({ className: classes.visibilityIcons }, { children: [contributionObj.collapsed ? _jsx(Icon, { children: "visibility_off" }) : _jsx(Icon, { children: "delete" }), _jsx(Icon, { children: "expand_more" })] }))) : (_jsx(Icon, { children: "more_vert" })) })), open && (_jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawer, Object.assign({ open: true, onClose: handleClose, onOpen: handleOpen, anchor: "bottom", disableSwipeToOpen: true }, { children: renderContent() }))) : (_jsx(PopperRoot, Object.assign({ open: true, anchorEl: popperRef.current, role: undefined, transition: true, className: classes.popperRoot }, PopperProps, { placement: "bottom-end" }, { children: ({ TransitionProps, placement }) => (_jsx(Grow, Object.assign({}, TransitionProps, { style: { transformOrigin: placement === 'bottom' ? 'center top' : 'center bottom' } }, { children: _jsx(Paper, Object.assign({ variant: "outlined", className: classes.paper }, { children: _jsx(ClickAwayListener, Object.assign({ onClickAway: handleClose }, { children: renderContent() })) })) }))) }))) })), openConfirmDialog && (_jsx(ConfirmDialog, Object.assign({ open: openConfirmDialog }, (currentAction === DELETE_CONTRIBUTION
|
|
812
812
|
? {
|
|
813
813
|
content: (_jsx(FormattedMessage, { id: "ui.contributionActionMenu.deleteContributionInfo", defaultMessage: "ui.contributionActionMenu.deleteContributionInfo" }))
|
|
814
814
|
}
|
|
@@ -9,7 +9,7 @@ import classNames from 'classnames';
|
|
|
9
9
|
import { enqueueSnackbar } from 'notistack';
|
|
10
10
|
import PubSub from 'pubsub-js';
|
|
11
11
|
import { useMemo, useState } from 'react';
|
|
12
|
-
import { FormattedMessage } from 'react-intl';
|
|
12
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
13
|
import EventForm from '../../components/EventForm';
|
|
14
14
|
import { ADD_EVENT_TO_CALENDAR, CANCEL_EVENT, GET_EVENT_LINK } from '../../constants/EventActionsMenu';
|
|
15
15
|
import { SCGroupEventType, SCTopicType } from '../../constants/PubSub';
|
|
@@ -80,6 +80,7 @@ export default function EventActionsMenu(inProps) {
|
|
|
80
80
|
const scRoutingContext = useSCRouting();
|
|
81
81
|
const scUserContext = useSCUser();
|
|
82
82
|
const { scEvent, setSCEvent } = useSCFetchEvent({ id: eventId, event });
|
|
83
|
+
const intl = useIntl();
|
|
83
84
|
const isEventAdmin = useMemo(() => { var _a; return scUserContext.user && ((_a = scEvent === null || scEvent === void 0 ? void 0 : scEvent.managed_by) === null || _a === void 0 ? void 0 : _a.id) === scUserContext.user.id; }, [scUserContext.user, (_a = scEvent === null || scEvent === void 0 ? void 0 : scEvent.managed_by) === null || _a === void 0 ? void 0 : _a.id]);
|
|
84
85
|
const isEventFinished = useMemo(() => checkEventFinished(scEvent), [scEvent]);
|
|
85
86
|
// HANDLERS
|
|
@@ -163,7 +164,7 @@ export default function EventActionsMenu(inProps) {
|
|
|
163
164
|
if (!scEvent) {
|
|
164
165
|
return null;
|
|
165
166
|
}
|
|
166
|
-
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, slotProps: {
|
|
167
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ title: intl.formatMessage({ id: 'ui.shared.eventActionsMenu.button.title', defaultMessage: 'ui.shared.eventActionsMenu.button.title' }), className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, slotProps: {
|
|
167
168
|
paper: {
|
|
168
169
|
className: classes.paper
|
|
169
170
|
}
|