mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
6e704d2919
Storybook Fixes GitOrigin-RevId: b2f80cec162d3d78d41a8864f9021f58370db37e
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
import ToolbarHeader from '../js/features/editor-navigation-toolbar/components/toolbar-header'
|
|
|
|
export const UpToThreeConnectedUsers = args => {
|
|
return <ToolbarHeader {...args} />
|
|
}
|
|
UpToThreeConnectedUsers.args = {
|
|
onlineUsers: ['a', 'c', 'd'].map(c => ({
|
|
user_id: c,
|
|
name: `${c}_user name`,
|
|
})),
|
|
}
|
|
|
|
export const ManyConnectedUsers = args => {
|
|
return <ToolbarHeader {...args} />
|
|
}
|
|
ManyConnectedUsers.args = {
|
|
onlineUsers: ['a', 'c', 'd', 'e', 'f'].map(c => ({
|
|
user_id: c,
|
|
name: `${c}_user name`,
|
|
})),
|
|
}
|
|
|
|
export default {
|
|
title: 'Editor / Toolbar',
|
|
component: ToolbarHeader,
|
|
argTypes: {
|
|
goToUser: { action: 'goToUser' },
|
|
renameProject: { action: 'renameProject' },
|
|
toggleHistoryOpen: { action: 'toggleHistoryOpen' },
|
|
toggleReviewPanelOpen: { action: 'toggleReviewPanelOpen' },
|
|
toggleChatOpen: { action: 'toggleChatOpen' },
|
|
togglePdfView: { action: 'togglePdfView' },
|
|
openShareModal: { action: 'openShareModal' },
|
|
onShowLeftMenuClick: { action: 'onShowLeftMenuClick' },
|
|
},
|
|
args: {
|
|
projectName: 'Overleaf Project',
|
|
onlineUsers: [{ user_id: 'abc', name: 'overleaf' }],
|
|
unreadMessageCount: 0,
|
|
},
|
|
}
|