Skip to content

Commit

Permalink
remove default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Jan 5, 2024
1 parent 2f0711d commit d2b776f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions packages/desktop-client/src/components/common/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ type ToggleProps = {
style?: CSSProperties;
};

const Toggle = ({ id, checked, onChange, onColor, style }: ToggleProps) => {
export const Toggle = ({
id,
checked,
onChange,
onColor,
style,
}: ToggleProps) => {
return (
<div style={{ marginTop: -20, ...style }}>
<input
Expand All @@ -31,5 +37,3 @@ const Toggle = ({ id, checked, onChange, onColor, style }: ToggleProps) => {
</div>
);
};

export default Toggle;
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/common/ToggleMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type ReactNode, useRef, useState, useEffect } from 'react';
import { type CSSProperties, theme } from '../../style';

import Text from './Text';
import Toggle from './Toggle';
import { Toggle } from './Toggle';
import View from './View';

type KeybindingProps = {
Expand Down Expand Up @@ -38,7 +38,7 @@ type ToggleMenuProps = {
style?: CSSProperties;
};

export default function ToggleMenu({
export function ToggleMenu({
header,
footer,
items: allItems,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { theme } from '../../style';
import Button from '../common/Button';
import Select from '../common/Select';
import Text from '../common/Text';
import ToggleMenu from '../common/ToggleMenu';
import {ToggleMenu} from '../common/ToggleMenu';
import View from '../common/View';
import { Tooltip } from '../tooltips';

Expand Down

0 comments on commit d2b776f

Please sign in to comment.