Skip to content

Commit 604607b

Browse files
committed
feat: add News icon and update Filters component to conditionally render tags
1 parent 0b48033 commit 604607b

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## [1.19.0](https://github.com/Programmer-Network/yail/compare/yail-v1.18.0...yail-v1.19.0) (2025-12-02)
44

5-
65
### Features
76

8-
* add callout functionality and draggable support to Tiptap editor ([bd8ae67](https://github.com/Programmer-Network/yail/commit/bd8ae671816816f7eb12c96c65c12243fa608613))
7+
- add callout functionality and draggable support to Tiptap editor
8+
([bd8ae67](https://github.com/Programmer-Network/yail/commit/bd8ae671816816f7eb12c96c65c12243fa608613))
99

1010
## [1.18.0](https://github.com/Programmer-Network/yail/compare/yail-v1.17.0...yail-v1.18.0) (2025-12-01)
1111

assets/icons/news.svg

Lines changed: 3 additions & 0 deletions
Loading

src/Components/Filters/Filters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const Filters: FC<IFiltersProps> = ({
9999
)}
100100
</div>
101101
</div>
102-
{showFilters && (
102+
{showFilters && tags && (
103103
<div className='yl:mt-2 yl:flex yl:flex-wrap yl:items-start yl:gap-2'>
104104
{tags && tags?.options?.length > 0 && (
105105
<Select

src/Components/Filters/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface IFiltersProps {
99
value: string;
1010
onChange: (value: string) => void;
1111
};
12-
tags: {
12+
tags?: {
1313
selected: string[];
1414
onChange: (options: string[]) => void;
1515
options: { value: string; label: string }[];
@@ -18,7 +18,7 @@ export interface IFiltersProps {
1818
value: ViewType;
1919
onChange: (view: ViewType) => void;
2020
};
21-
sorting: {
21+
sorting?: {
2222
value: string;
2323
onChange: (value: string) => void;
2424
options: { value: string; label: string }[];

src/Components/Icons/News.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { SVGProps } from "react";
2+
3+
const SvgNews = (props: SVGProps<SVGSVGElement>) => (
4+
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' {...props}>
5+
<path
6+
fill='none'
7+
d='M42.432 6.609c-.668-3.172-3.492-5.262-6.706-5.1-3.061.154-7.83.51-14.531 1.324-6.7.813-11.415 1.609-14.423 2.191-3.161.613-5.394 3.322-5.267 6.562.043 1.104.116 2.431.232 3.991.897-3.447 3.904-5.875 7.465-6.121C12.329 9.239 17.485 9 25 9s12.671.24 15.798.456a8.5 8.5 0 0 1 2.279.476q-.346-1.92-.645-3.323M25 46.5c-7.462 0-12.56-.238-15.626-.45-2.82-.195-5.1-2.306-5.38-5.174C3.747 38.351 3.5 34.459 3.5 29s.247-9.351.494-11.876c.28-2.868 2.56-4.98 5.38-5.174 3.065-.212 8.164-.45 15.626-.45s12.56.238 15.626.45c2.82.195 5.1 2.306 5.38 5.174.247 2.525.494 6.417.494 11.876s-.247 9.351-.494 11.876c-.28 2.868-2.56 4.98-5.38 5.174-3.065.212-8.164.45-15.626.45m-14-28a1.5 1.5 0 0 0 0 3h8a1.5 1.5 0 0 0 0-3zm0 12a1.5 1.5 0 0 0 0 3h8a1.5 1.5 0 0 0 0-3zM9.5 38a1.5 1.5 0 0 1 1.5-1.5h28a1.5 1.5 0 0 1 0 3H11A1.5 1.5 0 0 1 9.5 38M11 24.5a1.5 1.5 0 0 0 0 3h8a1.5 1.5 0 0 0 0-3zm21 9c-1.98 0-3.487-.06-4.568-.13a2.966 2.966 0 0 1-2.803-2.802A72 72 0 0 1 24.5 26c0-1.98.06-3.487.13-4.568a2.966 2.966 0 0 1 2.802-2.803c1.081-.07 2.587-.129 4.568-.129s3.487.06 4.568.13a2.966 2.966 0 0 1 2.803 2.802c.07 1.081.129 2.587.129 4.568s-.06 3.487-.13 4.568a2.966 2.966 0 0 1-2.802 2.803c-1.081.07-2.587.129-4.568.129'
8+
clipRule='evenodd'
9+
/>
10+
</svg>
11+
);
12+
export default SvgNews;

src/Components/Icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ export { default as NesOutline } from "./NesOutline";
905905
export { default as NesSolid } from "./NesSolid";
906906
export { default as NetlifyOutline } from "./NetlifyOutline";
907907
export { default as NetlifySolid } from "./NetlifySolid";
908+
export { default as News } from "./News";
908909
export { default as NextCircleOutline } from "./NextCircleOutline";
909910
export { default as NextCircleSolid } from "./NextCircleSolid";
910911
export { default as NextOutline } from "./NextOutline";

0 commit comments

Comments
 (0)