Skip to content

Commit 9ccacb8

Browse files
committed
svg to separate file, size according to figma
1 parent 72cc645 commit 9ccacb8

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

frontend/src/components/Topics/Topic/Messages/Filters/Filters.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import CloseIcon from 'components/common/Icons/CloseIcon';
2424
import FlexBox from 'components/common/FlexBox/FlexBox';
2525
import { useMessageFiltersStore } from 'lib/hooks/useMessageFiltersStore';
2626
import useDataSaver from 'lib/hooks/useDataSaver';
27+
import ExportIcon from 'components/common/Icons/ExportIcon'
2728

2829
import * as S from './Filters.styled';
2930
import {
@@ -88,7 +89,7 @@ const Filters: React.FC<FiltersProps> = ({
8889
smartFilter,
8990
setSmartFilter,
9091
refreshData,
91-
} = useMessagesFilters(topicName);
92+
} = useMessagesFilters();
9293

9394
const { data: topic } = useTopicDetails({ clusterName, topicName });
9495
const [createdEditedSmartId, setCreatedEditedSmartId] = useState<string>();
@@ -108,7 +109,7 @@ const Filters: React.FC<FiltersProps> = ({
108109

109110
const savedMessagesJson: MessageData[] = messages.map(
110111
(message: TopicMessage) => ({
111-
Value: message.value,
112+
Value: message.content,
112113
Offset: message.offset,
113114
Key: message.key,
114115
Partition: message.partition,
@@ -300,15 +301,7 @@ const Filters: React.FC<FiltersProps> = ({
300301
justifyContent: 'center',
301302
}}
302303
>
303-
<svg
304-
width="24"
305-
height="24"
306-
viewBox="0 0 18 18"
307-
fill="currentColor"
308-
>
309-
<path d="M4.24 5.8a.75.75 0 001.06-.04l1.95-2.1v6.59a.75.75 0 001.5 0V3.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.101.001L4.2 4.74a.75.75 0 00.04 1.06z" />
310-
<path d="M1.75 9a.75.75 0 01.75.75v3c0 .414.336.75.75.75h9.5a.75.75 0 00.75-.75v-3a.75.75 0 011.5 0v3A2.25 2.25 0 0112.75 15h-9.5A2.25 2.25 0 011 12.75v-3A.75.75 0 011.75 9z" />
311-
</svg>{' '}
304+
<ExportIcon/>
312305
Export
313306
</Button>
314307
{showFormatSelector && (
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react';
2+
3+
const ExportIcon: React.FC = () => {
4+
return (
5+
<svg
6+
width="16"
7+
height="16"
8+
viewBox="0 0 16 16"
9+
fill="none"
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
12+
<path
13+
d="M4.24 5.8a.75.75 0 001.06-.04l1.95-2.1v6.59a.75.75 0 001.5 0V3.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.101.001L4.2 4.74a.75.75 0 00.04 1.06z"
14+
fill="currentColor"
15+
/>
16+
<path
17+
d="M1.75 9a.75.75 0 01.75.75v3c0 .414.336.75.75.75h9.5a.75.75 0 00.75-.75v-3a.75.75 0 011.5 0v3A2.25 2.25 0 0112.75 15h-9.5A2.25 2.25 0 011 12.75v-3A.75.75 0 011.75 9z"
18+
fill="currentColor"
19+
/>
20+
</svg>
21+
);
22+
};
23+
24+
25+
export default ExportIcon;

0 commit comments

Comments
 (0)