"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/components/CallBackgroundBlur.tsx" between
Signal-Desktop-1.40.0.tar.gz and Signal-Desktop-1.40.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

CallBackgroundBlur.tsx  (Signal-Desktop-1.40.0):CallBackgroundBlur.tsx  (Signal-Desktop-1.40.1)
// Copyright 2020 Signal Messenger, LLC // Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only // SPDX-License-Identifier: AGPL-3.0-only
import React from 'react'; import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { ColorType } from '../types/Colors'; import { ColorType } from '../types/Colors';
export type PropsType = { export type PropsType = {
avatarPath?: string; avatarPath?: string;
children: React.ReactNode; children: React.ReactNode;
color?: ColorType; color?: ColorType;
skipping to change at line 29 skipping to change at line 29
return ( return (
<div <div
className={classNames('module-calling__background', { className={classNames('module-calling__background', {
[`module-background-color__${color || 'default'}`]: !avatarPath, [`module-background-color__${color || 'default'}`]: !avatarPath,
})} })}
> >
{avatarPath && ( {avatarPath && (
<div <div
className="module-calling__background--blur" className="module-calling__background--blur"
style={{ style={{
backgroundImage: `url("${avatarPath}")`, backgroundImage: `url('${encodeURI(avatarPath)}')`,
}} }}
/> />
)} )}
{children} {children}
</div> </div>
); );
}; };
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)