Skip to content

Commit 0b7f5fe

Browse files
authored
fix(LockIcon): content (#445)
1 parent d82f3b3 commit 0b7f5fe

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

.changeset/long-toys-move.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix LockIcon component.

src/components/overlays/NewNotifications/NotificationView/NotificationIcon.tsx

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
import { memo, ReactNode } from 'react';
22

33
import { tasty } from '../../../../tasty';
4-
import { DangerIcon, SuccessIcon, ExclamationIcon } from '../../../../icons';
4+
import { DangerIcon, ExclamationIcon } from '../../../../icons';
5+
import { wrapIcon } from '../../../../icons/wrap-icon';
56

67
import { NotificationIconProps } from './types';
78

9+
export const SuccessIcon = wrapIcon(
10+
'SuccessIcon',
11+
<svg
12+
fill="currentColor"
13+
viewBox="0 0 16 16"
14+
xmlns="http://www.w3.org/2000/svg"
15+
>
16+
<path d="m13.67 5.88-5.8 5.8a1.1 1.1 0 0 1-1.55 0l-3-3a1.1 1.1 0 0 1 1.56-1.55l2.21 2.21 5.03-5.02a1.1 1.1 0 0 1 1.55 1.56Z" />
17+
</svg>,
18+
);
19+
820
const IconContainer = tasty({
921
styles: {
1022
boxSizing: 'border-box',

src/components/pickers/Menu/Menu.stories.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useState } from 'react';
22
import {
33
BulbOutlined,
4-
CheckCircleFilled,
54
ReloadOutlined,
65
BookOutlined,
6+
CheckCircleFilled,
77
} from '@ant-design/icons';
88
import { action } from '@storybook/addon-actions';
99
import { expect } from '@storybook/test';
@@ -223,10 +223,10 @@ export const GitActions = (props) => {
223223
key="blue"
224224
mods={{ pressed: true }}
225225
postfix={
226-
<Flex gap="0.5x">
226+
<Space gap="0.5x">
227227
{successIcon}
228228
{stuffText}
229-
</Flex>
229+
</Space>
230230
}
231231
>
232232
Merge to master (pressed)

src/icons/SuccessIcon.tsx

-9
This file was deleted.

src/icons/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { wrapIcon } from './wrap-icon';
22
import { CloseIcon as _CloseIcon } from './CloseIcon';
33
import { ExclamationIcon as _ExclamationIcon } from './ExclamationIcon';
44
import { DangerIcon as _DangerIcon } from './DangerIcon';
5-
import { SuccessIcon as _SuccessIcon } from './SuccessIcon';
65
import { PlusIcon as _PlusIcon } from './PlusIcon';
76
import { AiIcon as _AiIcon } from './AiIcon';
87
import { AreaChartIcon as _AreaChartIcon } from './AreaChartIcon';
@@ -20,7 +19,7 @@ import { KeyIcon as _KeyIcon } from './KeyIcon';
2019
import { LeftIcon as _LeftIcon } from './LeftIcon';
2120
import { LineChartIcon as _LineChartIcon } from './LineChartIcon';
2221
import { LockFilledIcon as _LockFilledIcon } from './LockFilledIcon';
23-
import { LockFilledIcon as _LockIcon } from './LockFilledIcon';
22+
import { LockIcon as _LockIcon } from './LockIcon';
2423
import { MoreIcon as _MoreIcon } from './MoreIcon';
2524
import { NumberIcon as _NumberIcon } from './NumberIcon';
2625
import { PieChartIcon as _PieChartIcon } from './PieChartIcon';
@@ -37,7 +36,6 @@ import { ViewIcon as _ViewIcon } from './ViewIcon';
3736
export const CloseIcon = wrapIcon('CloseIcon', _CloseIcon);
3837
export const ExclamationIcon = wrapIcon('ExclamationIcon', _ExclamationIcon);
3938
export const DangerIcon = wrapIcon('DangerIcon', _DangerIcon);
40-
export const SuccessIcon = wrapIcon('SuccessIcon', _SuccessIcon);
4139
export const PlusIcon = wrapIcon('PlusIcon', _PlusIcon);
4240
export const AiIcon = wrapIcon('AiIcon', _AiIcon);
4341
export const AreaChartIcon = wrapIcon('AreaChartIcon', _AreaChartIcon);

0 commit comments

Comments
 (0)