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:
parent
a3fa65859f
commit
abaaeea7b8
1 changed files with 1 additions and 4 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue