chore: 通過 ESM 引入外部脚本
* React, ReactDOM 和 CryptoES * 集中在 Imports.ts 中 * 向每一個 JSX 添加 React 的 import
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import Avatar from "../Avatar.jsx"
|
||||
|
||||
import { React } from '../../Imports.ts'
|
||||
|
||||
export default function ContactsListItem({ nickName, avatar }) {
|
||||
return (
|
||||
<mdui-list-item rounded style={{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import Avatar from "../Avatar.jsx"
|
||||
|
||||
import { React } from '../../Imports.ts'
|
||||
|
||||
export default function RecentsListItem({ nickName, avatar, content }) {
|
||||
return (
|
||||
<mdui-list-item rounded style={{
|
||||
|
||||
Reference in New Issue
Block a user