Skip to content

Commit

Permalink
Fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Aug 1, 2021
1 parent 0cf0e8d commit b591435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/Terminal.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';

import 'xterm/css/xterm.css';
import { Terminal } from 'xterm';
import { Terminal as XTerminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import { listenColorScheme } from './ColorScheme';

export default function({ args, ...props }) {
export default function Terminal({ args, ...props }) {
const elem = React.useRef(null)
React.useEffect(() => {
if (elem) {
Expand All @@ -20,7 +20,7 @@ const fontScale = 0.85

export function newTerminal(elem) {
const fitAddon = new FitAddon()
const term = new Terminal({
const term = new XTerminal({
})
term.loadAddon(fitAddon)

Expand Down

0 comments on commit b591435

Please sign in to comment.