Skip to content

Commit

Permalink
Cleaned up commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazypkr1099 committed Sep 23, 2023
1 parent b57f07a commit f1fda62
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions packages/desktop-client/src/components/PrivacyFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ type PrivacyFilterProps = ComponentPropsWithRef<typeof View> & {
};
export default function PrivacyFilter({
activationFilters,
//blurIntensity,
children,
...props
}: PrivacyFilterProps) {
Expand All @@ -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)}</>
) : (
<PrivacyReplacement originalContent={children} {...props} />
// <BlurredOverlay blurIntensity={blurAmount} {...props}>
// {children}
// </BlurredOverlay>
);
}

Expand All @@ -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 (
// <View
// style={{
// display: style?.display ? style.display : 'inline-flex',
// ...blurStyle,
// ...style,
// }}
// onPointerEnter={onHover}
// onPointerLeave={onHoverEnd}
// {...restProps}
// >
// {children}
// </View>
// );
// }
export function mergeConditionalPrivacyFilterProps(
defaultPrivacyFilterProps: PrivacyFilterProps = {},
privacyFilter: ConditionalPrivacyFilterProps['privacyFilter'],
Expand Down

0 comments on commit f1fda62

Please sign in to comment.