Skip to content

Commit

Permalink
feat!: Replace icons with equal from uikit
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 5, 2023
1 parent fdbfcb3 commit 467313c
Show file tree
Hide file tree
Showing 29 changed files with 18 additions and 104 deletions.
36 changes: 0 additions & 36 deletions assets/icons/arcanum.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/arrow-left.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/arrow-right.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/checkbox-tick.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/checkmark.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/chevron.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/close.svg

This file was deleted.

4 changes: 0 additions & 4 deletions assets/icons/cog-marked.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/cog.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/dislike.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/edit.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/full-screen.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/github.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/lang.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/like.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/icons/search-bar-arrow.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/star-active.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/icons/star-inactive.svg

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/BookmarkButton/BookmarkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React from 'react';
import {Button, Icon} from '@gravity-ui/uikit';
import block from 'bem-cn-lite';

import StarActive from '../../../assets/icons/star-active.svg';
import StarInactive from '../../../assets/icons/star-inactive.svg';
import StarActive from '@gravity-ui/icons/svgs/star-fill.svg';
import StarInactive from '@gravity-ui/icons/svgs/star.svg';

import './BookmarkButton.scss';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Controls/Controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
PdfControl,
} from './';

import EditIcon from '../../../assets/icons/edit.svg';

import {PopperPosition} from '../../hooks';
import {Lang, TextSizes, Theme, FeedbackSendData, ControlSizes, SubscribeData} from '../../models';
import EditIcon from '@gravity-ui/icons/svgs/pencil.svg';

import './Controls.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {Control} from '../../Control';
import {ControlSizes, Lang} from '../../../models';

import FullScreenClickedIcon from '../../../../assets/icons/full-screen-clicked.svg';
import FullScreenIcon from '../../../../assets/icons/full-screen.svg';
import {PopperPosition} from '../../../hooks';
import FullScreenIcon from '@gravity-ui/icons/svgs/square-dashed.svg';

interface ControlProps {
lang: Lang;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Controls/single-controls/LangControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ControlSizes, Lang} from '../../../models';
import {getPopupPosition} from './utils';
import {PopperPosition} from '../../../hooks';

import LangIcon from '../../../../assets/icons/lang.svg';
import LangIcon from '@gravity-ui/icons/svgs/globe.svg';

import '../Controls.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {Control} from '../../../Control';
import {ControlSizes, Lang, TextSizes, Theme} from '../../../../models';
import {PopperPosition} from '../../../../hooks';

import SettingsIcon from '../../../../../assets/icons/cog.svg';

import {getPopupPosition} from '../utils';

import SettingsIcon from '@gravity-ui/icons/svgs/gear.svg';

import './SettingsControl.scss';

const ITEM_HEIGHT = 48;
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditButton/EditButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import block from 'bem-cn-lite';
import {withTranslation, WithTranslation, WithTranslationProps} from 'react-i18next';
import {Button, Icon as IconComponent} from '@gravity-ui/uikit';

import EditIcon from '../../../assets/icons/edit.svg';

import {Lang} from '../../models';
import EditIcon from '@gravity-ui/icons/svgs/pencil.svg';

import './EditButton.scss';

Expand Down
4 changes: 2 additions & 2 deletions src/components/Feedback/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {PopperPosition} from '../../hooks';
import {FeedbackSendData, FeedbackType, Lang} from '../../models';
import {DISLIKE_VARIANTS} from '../../constants';

import LikeIcon from '../../../assets/icons/like.svg';
import DislikeIcon from '../../../assets/icons/dislike.svg';
import DislikeActiveIcon from '@gravity-ui/icons/svgs/thumbs-down-fill.svg';
import DislikeIcon from '@gravity-ui/icons/svgs/thumbs-down.svg';

import './Feedback.scss';

Expand Down
6 changes: 3 additions & 3 deletions src/components/Paginator/Paginator.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, {ReactNode} from 'react';
import block from 'bem-cn-lite';

import {Button, Icon} from '@gravity-ui/uikit';
import block from 'bem-cn-lite';

import arrowIcon from '../../../assets/icons/arrow-right.svg';
import ArrowRightIcon from '@gravity-ui/icons/svgs/arrow-right.svg';

import './Paginator.scss';

Expand Down Expand Up @@ -142,7 +142,7 @@ const Paginator = ({

const arrowButton = (disable: boolean) => (
<Button className={b('icon')} size="s" view={'flat'} disabled={disable}>
<Icon data={arrowIcon} size={16} />
<Icon data={ArrowRightIcon} size={16} />
</Button>
);

Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {useHotkeys} from 'react-hotkeys-hook';
import {Control} from '../Control';

import {Lang} from '../../models';
import CloseIcon from '../../../assets/icons/close.svg';
import ArrowIcon from '../../../assets/icons/search-bar-arrow.svg';
import ArrowLeftIcon from '@gravity-ui/icons/svgs/chevron-left.svg';
import CloseIcon from '@gravity-ui/icons/svgs/xmark.svg';

import './SearchBar.scss';

Expand Down
4 changes: 2 additions & 2 deletions src/components/TocNavPanel/TocNavPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {withTranslation, WithTranslation, WithTranslationProps} from 'react-i18n

import {TocData, TocItem, Router, Lang} from '../../models';

import ArrowLeft from '../../../assets/icons/arrow-left.svg';
import ArrowRight from '../../../assets/icons/arrow-right.svg';

import {isExternalHref, isActiveItem} from '../../utils';
import ArrowLeft from '@gravity-ui/icons/svgs/arrow-left.svg';
import ArrowRight from '@gravity-ui/icons/svgs/arrow-right.svg';

import './TocNavPanel.scss';

Expand Down
2 changes: 1 addition & 1 deletion src/components/ToggleArrow/ToggleArrow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import block from 'bem-cn-lite';

import ChevronIcon from '../../../assets/icons/chevron.svg';
import ChevronIcon from '@gravity-ui/icons/svgs/chevron-right.svg';

import './ToggleArrow.scss';

Expand Down

0 comments on commit 467313c

Please sign in to comment.