New attachment storage system
This commit is contained in:
parent
273e1ccb15
commit
28664a606f
161 changed files with 2418 additions and 1562 deletions
|
@ -5,13 +5,13 @@ import React from 'react';
|
|||
import classNames from 'classnames';
|
||||
|
||||
export type PropsType = {
|
||||
avatarPath?: string;
|
||||
avatarUrl?: string;
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function CallBackgroundBlur({
|
||||
avatarPath,
|
||||
avatarUrl,
|
||||
children,
|
||||
className,
|
||||
}: PropsType): JSX.Element {
|
||||
|
@ -19,15 +19,15 @@ export function CallBackgroundBlur({
|
|||
<div
|
||||
className={classNames(
|
||||
'module-calling__background',
|
||||
!avatarPath && 'module-calling__background--no-avatar',
|
||||
!avatarUrl && 'module-calling__background--no-avatar',
|
||||
className
|
||||
)}
|
||||
>
|
||||
{avatarPath && (
|
||||
{avatarUrl && (
|
||||
<div
|
||||
className="module-calling__background--blur"
|
||||
style={{
|
||||
backgroundImage: `url('${encodeURI(avatarPath)}')`,
|
||||
backgroundImage: `url('${avatarUrl}')`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue