Skip to content

Commit 0995937

Browse files
authored
remove currency filter from economic calendar
1 parent 6212612 commit 0995937

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

docs/docs/components/EconomicCalendar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ import { EconomicCalendar } from "react-ts-tradingview-widgets";
4141
| autosize | boolean | false | false | Sets the width and height to 100% |
4242
| locale | [Locales](../types/Locales.md) | false | en | Sets the default locale |
4343
| importanceFilter | [_**ImportanceFilter**_](#private-types) | false | -1,0,1 | High performance |
44-
| currencyFilter | string | false | undefined | Default countries |
4544
| countryFilter | string | false | undefined | Default countries |

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-ts-tradingview-widgets",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "This is a React component library for TradingView Widgets. TypeScript is fully supported for every component!",
55
"main": "dist/index.js",
66
"scripts": {
@@ -11,13 +11,7 @@
1111
"type": "git",
1212
"url": "git+https://github.com/JorrinKievit/react-ts-tradingview-widgets.git"
1313
},
14-
"keywords": [
15-
"TradingView",
16-
"React",
17-
"Widgets",
18-
"TypeScript",
19-
"Embed"
20-
],
14+
"keywords": ["TradingView", "React", "Widgets", "TypeScript", "Embed"],
2115
"author": "JorrinKievit",
2216
"license": "ISC",
2317
"bugs": {
@@ -43,7 +37,5 @@
4337
"react": "^17.0.2 || ^18.1.0",
4438
"react-dom": "^17.0.2 || ^18.1.0"
4539
},
46-
"files": [
47-
"dist"
48-
]
40+
"files": ["dist"]
4941
}

src/components/EconomicCalendar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export type EconomicCalendarProps = {
1010
autosize?: boolean;
1111
locale?: Locales;
1212
importanceFilter?: "-1,0,1" | "0,1";
13-
currencyFilter?: string;
1413
countryFilter?: string;
1514
children?: never;
1615

@@ -25,9 +24,8 @@ const EconomicCalendar: React.FC<EconomicCalendarProps> = ({
2524
autosize = false,
2625
locale = "en",
2726
importanceFilter = "-1,0,1",
28-
currencyFilter = undefined,
27+
countryFilter = undefined,
2928
copyrightStyles,
30-
countryFilter,
3129
...props
3230
}) => {
3331
return (
@@ -39,7 +37,6 @@ const EconomicCalendar: React.FC<EconomicCalendarProps> = ({
3937
...(!autosize ? { height } : { height: "100%" }),
4038
locale,
4139
importanceFilter,
42-
currencyFilter,
4340
countryFilter,
4441
...props,
4542
}}

0 commit comments

Comments
 (0)