refactor: simplify highlight.js import in ProvisioningProgressBlock

- Updated the import statement for highlight.js to use the main package instead of specific language imports, streamlining the code and reducing dependencies.
This commit is contained in:
iliya 2026-02-24 14:24:33 +02:00
parent a3fa65859f
commit abaaeea7b8

View file

@ -3,12 +3,9 @@ import { useEffect, useMemo, useRef, useState } from 'react';
import { Badge } from '@renderer/components/ui/badge';
import { Button } from '@renderer/components/ui/button';
import { cn } from '@renderer/lib/utils';
import hljs from 'highlight.js/lib/core';
import json from 'highlight.js/lib/languages/json';
import hljs from 'highlight.js';
import { ChevronDown, ChevronRight, Loader2 } from 'lucide-react';
hljs.registerLanguage('json', json);
import { STEP_LABELS, STEP_ORDER } from './provisioningSteps';
import type { ProvisioningStep } from './provisioningSteps';