mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
renamed some snake_case params
This commit is contained in:
parent
c58b4feb4a
commit
1f9b9a3df0
4 changed files with 10 additions and 10 deletions
|
@ -13,10 +13,10 @@ interface IProps {
|
|||
progress?: number;
|
||||
onDrop?: (file_id: string) => void;
|
||||
|
||||
is_uploading?: boolean;
|
||||
uploading?: boolean;
|
||||
}
|
||||
|
||||
const AudioUpload: FC<IProps> = ({ title, progress, is_uploading, id, onDrop }) => {
|
||||
const AudioUpload: FC<IProps> = ({ title, progress, uploading, id, onDrop }) => {
|
||||
const onDropFile = useCallback(() => {
|
||||
if (!id || !onDrop) return;
|
||||
onDrop(id);
|
||||
|
@ -30,8 +30,8 @@ const AudioUpload: FC<IProps> = ({ title, progress, is_uploading, id, onDrop })
|
|||
</div>
|
||||
)}
|
||||
|
||||
<div className={classNames(styles.thumb_wrap, { is_uploading })}>
|
||||
{is_uploading && (
|
||||
<div className={classNames(styles.thumb_wrap, { uploading: uploading })}>
|
||||
{uploading && (
|
||||
<div className={styles.progress}>
|
||||
<ArcProgress size={40} progress={progress} />
|
||||
</div>
|
||||
|
|
|
@ -14,10 +14,10 @@ interface IProps {
|
|||
progress?: number;
|
||||
onDrop?: (file_id: IFile['id']) => void;
|
||||
|
||||
is_uploading?: boolean;
|
||||
uploading?: boolean;
|
||||
}
|
||||
|
||||
const ImageUpload: FC<IProps> = ({ thumb, progress, is_uploading, id, onDrop }) => {
|
||||
const ImageUpload: FC<IProps> = ({ thumb, progress, uploading, id, onDrop }) => {
|
||||
const onDropFile = useCallback(() => {
|
||||
if (!id || !onDrop) return;
|
||||
onDrop(id);
|
||||
|
@ -31,9 +31,9 @@ const ImageUpload: FC<IProps> = ({ thumb, progress, is_uploading, id, onDrop })
|
|||
</div>
|
||||
)}
|
||||
|
||||
<div className={classNames(styles.thumb_wrap, { is_uploading })}>
|
||||
<div className={classNames(styles.thumb_wrap, { uploading: uploading })}>
|
||||
{thumb && <div className={styles.thumb} style={{ backgroundImage: `url("${thumb}")` }} />}
|
||||
{is_uploading && (
|
||||
{uploading && (
|
||||
<div className={styles.progress}>
|
||||
<ArcProgress size={72} progress={progress} />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue