Skip to content

Commit

Permalink
using default exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
catandthemachines committed Nov 27, 2024
1 parent a92c58d commit 9db2826
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/perseus-editor/src/components/drag-target.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type DefaultProps = {
type State = {
dragHover: boolean;
};
export class DragTarget extends React.Component<Props, State> {
class DragTarget extends React.Component<Props, State> {
static defaultProps: DefaultProps = {
component: "div",
shouldDragHighlight: () => true,
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-editor/src/components/sortable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type State = {
* As far as I can tell, this one is only used in ExpressionEditor.
*/
// eslint-disable-next-line react/no-unsafe
export class SortableArea extends React.Component<Props, State> {
class SortableArea extends React.Component<Props, State> {
_dragItems: any;

static defaultProps: DefaultProps = {
Expand Down Expand Up @@ -175,7 +175,7 @@ type ItemProps = {
};

// An individual sortable item
export class SortableItem extends React.Component<ItemProps> {
class SortableItem extends React.Component<ItemProps> {
handleDragStart(e) {
e.nativeEvent.dataTransfer.effectAllowed = "move";
this.props.area.onDragStart(this.props.index);
Expand Down
2 changes: 1 addition & 1 deletion packages/perseus-editor/src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import "./katex-mhchem";
import * as React from "react";
import _ from "underscore";

import {DragTarget} from "./components/drag-target";
import DragTarget from "./components/drag-target";
import WidgetEditor from "./components/widget-editor";
import WidgetSelect from "./components/widget-select";
import TexErrorView from "./tex-error-view";
Expand Down
2 changes: 1 addition & 1 deletion packages/perseus-editor/src/widgets/expression-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import lens from "hubble";
import * as React from "react";
import _ from "underscore";

import {SortableArea} from "../components/sortable";
import SortableArea from "../components/sortable";

import type {
PerseusExpressionWidgetOptions,
Expand Down

0 comments on commit 9db2826

Please sign in to comment.