File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 66import { useModal } from '../../../design/lib/stores/modal'
77import {
88 mdiPencilBoxMultipleOutline ,
9- mdiPackageVariantClosed ,
109 mdiTextBoxPlusOutline ,
1110 mdiPencilBoxOutline ,
11+ mdiPaletteOutline ,
1212} from '@mdi/js'
1313import React , { useCallback } from 'react'
1414import { SerializedTeam } from '../../interfaces/db/team'
@@ -70,7 +70,7 @@ const NewDocButton = ({ team }: { team: SerializedTeam }) => {
7070 onClick : ( ) => openNewDocModal ( ) ,
7171 } ,
7272 {
73- icon : mdiPackageVariantClosed ,
73+ icon : mdiPaletteOutline ,
7474 type : MenuTypes . Normal ,
7575 label : translate ( lngKeys . CreateNewCanvas ) ,
7676 onClick : ( ) => openNewDocModal ( true ) ,
Original file line number Diff line number Diff line change 1- import { mdiFileDocumentOutline , mdiFolderOutline } from '@mdi/js'
1+ import {
2+ mdiFileDocumentOutline ,
3+ mdiFolderOutline ,
4+ mdiPaletteOutline ,
5+ } from '@mdi/js'
26import React , { useCallback } from 'react'
37import { FormRowProps } from '../../../design/components/molecules/Form/templates/FormRow'
48import EmojiInputForm from '../../../design/components/organisms/EmojiInputForm'
@@ -161,7 +165,7 @@ export function useCloudResourceModals() {
161165 ) => {
162166 openModal (
163167 < EmojiInputForm
164- defaultIcon = { mdiFileDocumentOutline }
168+ defaultIcon = { body . blocks ? mdiPaletteOutline : mdiFileDocumentOutline }
165169 placeholder = { translate ( lngKeys . DocTitlePlaceholder ) }
166170 submitButtonProps = { {
167171 label : translate ( lngKeys . GeneralCreate ) ,
@@ -196,7 +200,9 @@ export function useCloudResourceModals() {
196200 /> ,
197201 {
198202 showCloseIcon : true ,
199- title : translate ( lngKeys . ModalsCreateNewDocument ) ,
203+ title : body . blocks
204+ ? translate ( lngKeys . CreateNewCanvas )
205+ : translate ( lngKeys . ModalsCreateNewDocument ) ,
200206 }
201207 )
202208 } ,
You can’t perform that action at this time.
0 commit comments