Skip to content

Commit

Permalink
Fixed LineGutter declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 7, 2024
1 parent ce9e825 commit 8441b98
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions src/components/LineGutter/index.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
import React, { Component } from 'react';
import React, { Component } from "react";

import styles from './index.module.css';
import styles from "./index.module.css";

export interface LineGutterProps {
/**
* The gutter object
*/
gutter: React.ReactNode;
}

interface LineGutterProps {
gutter?: unknown;
/**
* The gutter object
*/
gutter: React.ReactNode;
}

/**
* The gutter is an element between the line number and content.
*/
export default class LineGutter extends Component<LineGutterProps> {
static defaultProps = {
gutter: null,
};
static defaultProps = {
gutter: null,
};

render() {
const { gutter } = this.props;
render() {
const { gutter } = this.props;

return (
<span className={`log-gutter ${styles.lineGutter}`}>{gutter}</span>
);
}
return (
<span className={`log-gutter ${styles.lineGutter}`}>{gutter}</span>
);
}
}

0 comments on commit 8441b98

Please sign in to comment.