fix imports

This commit is contained in:
Luck
2021-04-02 18:54:37 +01:00
parent 3fb11c5a9a
commit 2e99fa9dab
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import Editor from './components/Editor';
import parseContentType from 'content-type-parser';
import { languageIds } from './highlighting';
import { languageIds } from './util/highlighting';
function getPasteIdFromUrl() {
const path = window.location.pathname;

View File

@@ -5,7 +5,7 @@ import history from 'history/browser';
import copy from 'copy-to-clipboard';
import { MenuButton, Button } from './Menu';
import { languageIds } from '../highlighting';
import { languageIds } from '../util/highlighting';
import themes from '../style/themes';
export default function EditorControls({

View File

@@ -2,7 +2,7 @@ import { useRef } from 'react';
import styled from 'styled-components';
import ReactEditor from 'react-simple-code-editor';
import EditorPrismStyle from './EditorPrismStyle';
import { getHighlighter } from '../highlighting';
import { getHighlighter } from '../util/highlighting';
export default function EditorTextArea({ code, setCode, language, fontSize }) {
const highlight = getHighlighter(language);