|
@@ -1,8 +1,7 @@
|
|
|
import { useState } from 'react'
|
|
import { useState } from 'react'
|
|
|
-import { View, Text, Image } from '@tarojs/components'
|
|
|
|
|
|
|
+import { View, Image } from '@tarojs/components'
|
|
|
import Taro from '@tarojs/taro'
|
|
import Taro from '@tarojs/taro'
|
|
|
import { cn } from '@/utils/cn'
|
|
import { cn } from '@/utils/cn'
|
|
|
-import { Button } from '@/components/ui/button'
|
|
|
|
|
import { uploadFromSelect, type UploadResult } from '@/utils/minio'
|
|
import { uploadFromSelect, type UploadResult } from '@/utils/minio'
|
|
|
|
|
|
|
|
interface AvatarUploadProps {
|
|
interface AvatarUploadProps {
|
|
@@ -74,7 +73,6 @@ export function AvatarUpload({
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const avatarSize = size
|
|
const avatarSize = size
|
|
|
- const iconSize = Math.floor(size / 4)
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<View
|
|
<View
|