File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Divider } from '@/components/ui/divider' ;
22import { useTranslation } from 'react-i18next' ;
3- import { useEffect , useState } from 'react' ;
4- import LoadingPlaceholder from '../others/LoadingPlaceholder' ;
53
64export default function ImportData ( ) {
75 const { t } = useTranslation ( 'translation' , {
86 keyPrefix : 'pages.experiment.importData' ,
97 } ) ;
10- const [ loading ] = useState ( false ) ;
11-
12- useEffect ( ( ) => { } , [ ] ) ;
138
149 return (
1510 < div className = "noScrollBar relative aspect-square w-full overflow-x-hidden overflow-y-scroll p-4" >
@@ -18,7 +13,10 @@ export default function ImportData() {
1813 < div className = "text-info mt-2 text-sm font-normal" > { t ( 'description' ) } </ div >
1914 </ div >
2015 < Divider > </ Divider >
21- { loading ? < LoadingPlaceholder className = "py-8" size = { 6 } /> : null }
16+ < div className = "bg-background/90 absolute top-0 left-0 flex h-full w-full flex-col items-center justify-center gap-2 backdrop-blur-xl" >
17+ < div className = "text-2xl" > 🚧</ div >
18+ < div > { t ( 'notSupported' ) } </ div >
19+ </ div >
2220 </ div >
2321 ) ;
2422}
Original file line number Diff line number Diff line change 219219 },
220220 "importData" : {
221221 "title" : " Data Import" ,
222- "description" : " Import data from other note platforms."
222+ "description" : " Import data from other note platforms." ,
223+ "notSupported" : " Currently not supported."
223224 },
224225 "serviceWorker" : {
225226 "title" : " ServiceWorker Notification" ,
Original file line number Diff line number Diff line change 223223 },
224224 "importData" : {
225225 "title" : " 数据导入" ,
226- "description" : " 导入来自其他笔记平台的数据。"
226+ "description" : " 导入来自其他笔记平台的数据。" ,
227+ "notSupported" : " 导入数据功能施工中"
227228 },
228229 "serviceWorker" : {
229230 "title" : " ServiceWoker通知" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function MainPageHeader({
3131 className = "group bg-background sticky top-0 z-10 flex cursor-pointer items-center gap-2 p-4 py-4.5 font-light text-gray-600"
3232 onClick = { refreshData }
3333 >
34- < Logo className = "h-6 w-fit " color = "#07C160" />
34+ < Logo className = "h-6 w-auto " color = "#07C160" />
3535 < img
3636 className = "text-theme mb-[2px] ml-2 h-4 opacity-0 duration-300 group-hover:opacity-100"
3737 src = { slogenImg }
You can’t perform that action at this time.
0 commit comments