Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/docs-ui/src/views/paragraph-setting/Setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

import { HorizontalAlign, LocaleService, SpacingRule } from '@univerjs/core';
import { borderClassName, clsx, InputNumber, Select, Tooltip } from '@univerjs/design';
import { AlignTextBothIcon, HorizontallyIcon, LeftJustifyingIcon, RightJustifyingIcon } from '@univerjs/icons';
import { useDependency } from '@univerjs/ui';
import { ComponentManager, useDependency } from '@univerjs/ui';
import { useMemo, useRef } from 'react';
import {
useCurrentParagraph,
Expand Down Expand Up @@ -64,6 +63,12 @@ const AutoFocusInputNumber = (props: {
};
export function ParagraphSetting() {
const localeService = useDependency(LocaleService);
const componentManager = useDependency(ComponentManager);

const LeftJustifyingIcon = componentManager.get('LeftJustifyingIcon');
const HorizontallyIcon = componentManager.get('HorizontallyIcon');
const RightJustifyingIcon = componentManager.get('RightJustifyingIcon');
const AlignTextBothIcon = componentManager.get('AlignTextBothIcon');

const alignmentOptions = useMemo(() => [
{ label: localeService.t('toolbar.alignLeft'), value: String(HorizontalAlign.LEFT), icon: <LeftJustifyingIcon /> },
Expand Down
Loading