Skip to content

Commit

Permalink
New Editor Interface (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouloumos authored Aug 8, 2024
1 parent 1e24d52 commit 2aa32b1
Show file tree
Hide file tree
Showing 36 changed files with 2,063 additions and 2,490 deletions.
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
Expand All @@ -10,6 +12,15 @@ const nextConfig = {
},
],
},
transpilePackages: ['slate-transcript-editor'],
webpack: (config) => {
// Resolve React dependencies for local development of slate-transcript-editor
// This configuration is only necessary when working with a local version of the library
// It prevents "Invalid hook call" errors by ensuring consistent React versions
config.resolve.alias['react'] = path.resolve('./node_modules/react');
config.resolve.alias['react-dom'] = path.resolve('./node_modules/react-dom');
return config;
},
};

module.exports = nextConfig;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
"match-sorter": "^6.3.1",
"next": "^13.4.13",
"next-auth": "^4.22.5",
"next-transpile-modules": "^10.0.1",
"react": "^18.2.0",
"react-datepicker": "^4.16.0",
"react-dom": "^18.2.0",
"react-icons": "^4.10.1",
"react-markdown-editor-lite": "^1.3.4",
"react-youtube": "^10.1.0",
"sanitize-html": "^2.11.0",
"slate-transcript-editor": "https://github.com/kouloumos/slate-transcript-editor.git#v0.1.6",
"slugify": "^1.6.6",
"use-debounce": "^10.0.0"
},
Expand Down
142 changes: 0 additions & 142 deletions src/components/alerts/SubmitTranscriptAlert.tsx

This file was deleted.

Loading

0 comments on commit 2aa32b1

Please sign in to comment.