mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-04 08:35:28 +00:00
avatar - arrow-up-tray
This commit is contained in:
parent
ccae15992c
commit
b33d0f8b51
@ -2,6 +2,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-floating-promises */
|
/* eslint-disable @typescript-eslint/no-floating-promises */
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable @typescript-eslint/prefer-optional-chain */
|
/* eslint-disable @typescript-eslint/prefer-optional-chain */
|
||||||
|
import ArrowUpTrayIcon from '@heroicons/react/24/outline/ArrowUpTrayIcon'
|
||||||
import { useState, useCallback, useRef } from 'react'
|
import { useState, useCallback, useRef } from 'react'
|
||||||
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
import { ReactCrop, centerCrop, makeAspectCrop } from 'react-image-crop'
|
||||||
|
|
||||||
@ -169,20 +170,7 @@ export const AvatarWidget: React.FC<AvatarWidgetProps> = ({ avatar, setAvatar })
|
|||||||
onChange={onImageChange}
|
onChange={onImageChange}
|
||||||
/>
|
/>
|
||||||
<div className='button tw-btn tw-btn-lg tw-btn-circle tw-animate-none'>
|
<div className='button tw-btn tw-btn-lg tw-btn-circle tw-animate-none'>
|
||||||
<svg
|
<ArrowUpTrayIcon className='tw-w-6 tw-h-6' />
|
||||||
xmlns='http://www.w3.org/2000/svg'
|
|
||||||
fill='none'
|
|
||||||
viewBox='0 0 24 24'
|
|
||||||
strokeWidth='1.5'
|
|
||||||
stroke='currentColor'
|
|
||||||
className='tw-w-6 tw-h-6'
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
strokeLinecap='round'
|
|
||||||
strokeLinejoin='round'
|
|
||||||
d='M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5'
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
</div>
|
||||||
{avatar ? (
|
{avatar ? (
|
||||||
<div className='tw-h-20 tw-w-20'>
|
<div className='tw-h-20 tw-w-20'>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user