🌈 style(eslint): add eslint rules
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
|
||||
import { Button, Navigator, ScrollView, Text, View } from "@tarojs/components"
|
||||
import { memo } from "react"
|
||||
import "./index.scss"
|
||||
import { Button, Navigator, ScrollView, Text, View } from '@tarojs/components'
|
||||
import { memo } from 'react'
|
||||
import './index.scss'
|
||||
|
||||
interface Params{
|
||||
text: String,//提示信息
|
||||
text: String// 提示信息
|
||||
}
|
||||
|
||||
// 消息提示
|
||||
const Message = memo((props:Params)=>{
|
||||
const Message = memo((props: Params) => {
|
||||
return (
|
||||
<View className="message-custom-tips">
|
||||
<Text className="iconfont icon-zhuyi"></Text> {props.text}
|
||||
@@ -16,4 +16,4 @@ const Message = memo((props:Params)=>{
|
||||
)
|
||||
})
|
||||
|
||||
export default Message;
|
||||
export default Message
|
||||
|
||||
Reference in New Issue
Block a user