From f1fda6229c39829ee80e4b722b652714e724a562 Mon Sep 17 00:00:00 2001 From: Crazypkr1099 Date: Fri, 22 Sep 2023 22:07:18 -0400 Subject: [PATCH] Cleaned up commented out code --- .../src/components/PrivacyFilter.tsx | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/packages/desktop-client/src/components/PrivacyFilter.tsx b/packages/desktop-client/src/components/PrivacyFilter.tsx index 3e8b482f121..399283c3188 100644 --- a/packages/desktop-client/src/components/PrivacyFilter.tsx +++ b/packages/desktop-client/src/components/PrivacyFilter.tsx @@ -52,7 +52,6 @@ type PrivacyFilterProps = ComponentPropsWithRef & { }; export default function PrivacyFilter({ activationFilters, - //blurIntensity, children, ...props }: PrivacyFilterProps) { @@ -67,15 +66,10 @@ export default function PrivacyFilter({ typeof value === 'boolean' ? value : value(), )); - //let blurAmount = blurIntensity != null ? `${blurIntensity}px` : '3px'; - return !activate ? ( <>{Children.toArray(children)} ) : ( - // - // {children} - // ); } @@ -96,38 +90,6 @@ function PrivacyReplacement({ ); } -// function BlurredOverlay({ blurIntensity, children, ...props }) { -// let [hovered, setHovered] = useState(false); -// let onHover = useCallback(() => setHovered(true), [setHovered]); -// let onHoverEnd = useCallback(() => setHovered(false), [setHovered]); - -// let blurStyle = { -// ...(!hovered && { -// filter: `blur(${blurIntensity})`, -// WebkitFilter: `blur(${blurIntensity})`, -// // To fix blur performance issue in Safari. -// // https://graffino.com/til/CjT2jrcLHP-how-to-fix-filter-blur-performance-issue-in-safari -// transform: `translate3d(0, 0, 0)`, -// }), -// }; - -// let { style, ...restProps } = props; - -// return ( -// -// {children} -// -// ); -// } export function mergeConditionalPrivacyFilterProps( defaultPrivacyFilterProps: PrivacyFilterProps = {}, privacyFilter: ConditionalPrivacyFilterProps['privacyFilter'],