@@ -8,10 +8,6 @@ import {
88 mdiFilePdfOutline ,
99 mdiLabelMultipleOutline ,
1010 mdiRestore ,
11- mdiPlusBoxMultipleOutline ,
12- mdiLinkPlus ,
13- mdiAccountMultiple ,
14- mdiHistory ,
1511 mdiArchive ,
1612} from '@mdi/js'
1713import { isTagNameValid } from '../../lib/db/utils'
@@ -27,7 +23,6 @@ import {
2723} from '../../lib/exports'
2824import { usePreferences } from '../../lib/preferences'
2925import { usePreviewStyle } from '../../lib/preview'
30- import { useCloudIntroModal } from '../../lib/cloudIntroModal'
3126import styled from '../../shared/lib/styled'
3227import Icon from '../../shared/components/atoms/Icon'
3328import { useToast } from '../../shared/lib/stores/toast'
@@ -56,7 +51,6 @@ const NoteContextView = ({ storage, note }: NoteContextViewProps) => {
5651 const { previewStyle } = usePreviewStyle ( )
5752
5853 const includeFrontMatter = preferences [ 'markdown.includeFrontMatter' ]
59- const { toggleShowingCloudIntroModal } = useCloudIntroModal ( )
6054
6155 const appendTagByName = useCallback (
6256 async ( tagName : string ) => {
@@ -258,57 +252,6 @@ const NoteContextView = ({ storage, note }: NoteContextViewProps) => {
258252 </ ControlItem >
259253
260254 < Separator />
261-
262- < ControlItem >
263- < CloudIntroItemLabel >
264- < LabelIcon path = { mdiAccountMultiple } />
265- Guests
266- </ CloudIntroItemLabel >
267- < CloudIntroItemContent >
268- < TryCloudButton onClick = { toggleShowingCloudIntroModal } >
269- Try Cloud
270- </ TryCloudButton >
271- </ CloudIntroItemContent >
272- </ ControlItem >
273- < ControlItem >
274- < CloudIntroItemLabel >
275- < LabelIcon path = { mdiLinkPlus } />
276- Public Sharing
277- </ CloudIntroItemLabel >
278- < CloudIntroItemContent >
279- < TryCloudButton onClick = { toggleShowingCloudIntroModal } >
280- Try Cloud
281- </ TryCloudButton >
282- </ CloudIntroItemContent >
283- </ ControlItem >
284-
285- < Separator />
286-
287- < ControlItem >
288- < CloudIntroItemLabel >
289- < LabelIcon path = { mdiHistory } />
290- Revisions
291- </ CloudIntroItemLabel >
292- < CloudIntroItemContent >
293- < TryCloudButton onClick = { toggleShowingCloudIntroModal } >
294- Try Cloud
295- </ TryCloudButton >
296- </ CloudIntroItemContent >
297- </ ControlItem >
298-
299- < Separator />
300-
301- < ControlItem >
302- < CloudIntroItemLabel >
303- < LabelIcon path = { mdiPlusBoxMultipleOutline } />
304- Save As Template
305- </ CloudIntroItemLabel >
306- < CloudIntroItemContent >
307- < TryCloudButton onClick = { toggleShowingCloudIntroModal } >
308- Try Cloud
309- </ TryCloudButton >
310- </ CloudIntroItemContent >
311- </ ControlItem >
312255 { note . trashed ? (
313256 < >
314257 < ButtonItem title = { t ( 'note.restore' ) } onClick = { untrash } >
@@ -415,44 +358,6 @@ const ControlItemContent = styled.div`
415358 margin-right: 10px;
416359`
417360
418- const CloudIntroItemLabel = styled . div `
419- height: 40px;
420- display: flex;
421- align-items: center;
422- margin-left: 10px;
423- flex-shrink: 0;
424- flex-grow: 1;
425- `
426- const CloudIntroItemContent = styled . div `
427- display: flex;
428- align-items: center;
429- flex-wrap: wrap;
430- margin-right: 10px;
431- `
432-
433- const TryCloudButton = styled . button `
434- background-color: ${ ( { theme } ) => theme . colors . variants . primary . base } ;
435- color: ${ ( { theme } ) => theme . colors . variants . primary . text } ;
436- font-size: 12px;
437- border: none;
438-
439- &:hover,
440- &:active,
441- &.active {
442- cursor: pointer;
443- }
444- &:focus {
445- box-shadow: 0 0 0 2px ${ ( { theme } ) => theme . colors . background . tertiary } ;
446- }
447- &:disabled,
448- &.disabled {
449- opacity: 0.5;
450- cursor: default;
451- }
452- padding: 5px 10px;
453- border-radius: 4px;
454- `
455-
456361const ButtonItem = styled . button `
457362 height: 40px;
458363 width: 100%;
0 commit comments