fix(electron): set client border style to false by default on windows (#3960)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Sarvesh Kumar.A
2023-08-27 01:56:48 +05:30
committed by GitHub
parent 54607aed6f
commit 118165bf72
7 changed files with 25 additions and 8 deletions

View File

@@ -3,14 +3,14 @@ import type { CSSProperties, PropsWithChildren, ReactNode } from 'react';
import { settingRow } from './share.css';
interface SettingRowProps {
type SettingRowProps = {
name: ReactNode;
desc: ReactNode;
style?: CSSProperties;
onClick?: () => void;
spreadCol?: boolean;
testId?: string;
}
'data-testid'?: string;
};
export const SettingRow = ({
name,
@@ -19,7 +19,7 @@ export const SettingRow = ({
onClick,
style,
spreadCol = true,
testId = '',
...props
}: PropsWithChildren<SettingRowProps>) => {
return (
<div
@@ -28,7 +28,7 @@ export const SettingRow = ({
})}
style={style}
onClick={onClick}
data-testid={testId}
data-testid={props['data-testid']}
>
<div className="left-col">
<div className="name">{name}</div>

View File

@@ -26,6 +26,7 @@ export const Switch = (props: SwitchProps) => {
<input
className={clsx(styles.inputStyle)}
type="checkbox"
value={isChecked ? 'on' : 'off'}
checked={isChecked}
onChange={handleChange}
/>