./src/components/thread/tool-views/file-operation/FileEditToolView.tsx:41:11
Type error: Object literal may only specify known properties, and 'color' does not exist in type 'ReactDiffViewerStylesVariables'.

  39 |       variables: {
  40 |         dark: {
> 41 |           color: '#e2e8f0',
     |           ^
  42 |           background: '#09090b',
  43 |           addedBackground: '#104a32',
  44 |           addedColor: '#6ee7b7',
Next.js build worker exited with code: 1 and signal: null
This commit is contained in:
LE Quoc Dat 2025-07-28 21:13:37 +02:00
parent ce0e35c4e5
commit 96e77cfcbf
1 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ const UnifiedDiffView: React.FC<{ oldCode: string; newCode: string }> = ({ oldCo
styles={{ styles={{
variables: { variables: {
dark: { dark: {
color: '#e2e8f0', diffViewerColor: '#e2e8f0',
background: '#09090b', diffViewerBackground: '#09090b',
addedBackground: '#104a32', addedBackground: '#104a32',
addedColor: '#6ee7b7', addedColor: '#6ee7b7',
removedBackground: '#5c1a2e', removedBackground: '#5c1a2e',
@ -72,8 +72,8 @@ const SplitDiffView: React.FC<{ oldCode: string; newCode: string }> = ({ oldCode
styles={{ styles={{
variables: { variables: {
dark: { dark: {
color: '#e2e8f0', diffViewerColor: '#e2e8f0',
background: '#09090b', diffViewerBackground: '#09090b',
addedBackground: '#104a32', addedBackground: '#104a32',
addedColor: '#6ee7b7', addedColor: '#6ee7b7',
removedBackground: '#5c1a2e', removedBackground: '#5c1a2e',