diff --git a/packages/core/src/Currency.ts b/packages/core/src/Currency.ts index 0c4400ab3..0d0c087fa 100644 --- a/packages/core/src/Currency.ts +++ b/packages/core/src/Currency.ts @@ -9,6 +9,7 @@ export const enum CurrencyCode { AUD = 'AUD', CNY = 'CNY', KRW = 'KRW', + GBP = 'GBP', MONOPOLY = 'MONOPOLY' } @@ -27,6 +28,7 @@ export class Currency { switch (currencySymbol.toUpperCase()) { case CurrencyCode.RUB: return 'ru-RU'; case CurrencyCode.USD: return 'en-US'; + case CurrencyCode.GBP: return 'en-GB'; case CurrencyCode.AUD: return 'en-AU'; case CurrencyCode.EUR: return 'de-DE'; case CurrencyCode.CNY: return 'zh-CN'; @@ -67,4 +69,4 @@ export class CurrencyAmount extends BigAmount { static create(value: number, currency: string): CurrencyAmount { return new CurrencyAmount(value * 100, currency) } -} \ No newline at end of file +} diff --git a/packages/react-app/src/settings/SettingsForm/SettingsForm.tsx b/packages/react-app/src/settings/SettingsForm/SettingsForm.tsx index 46753f519..cf150636c 100644 --- a/packages/react-app/src/settings/SettingsForm/SettingsForm.tsx +++ b/packages/react-app/src/settings/SettingsForm/SettingsForm.tsx @@ -168,6 +168,9 @@ export class SettingsForm extends React.Component { USD + + GBP + CNY diff --git a/packages/ui/src/icons/CurrencyGbp.tsx b/packages/ui/src/icons/CurrencyGbp.tsx new file mode 100644 index 000000000..fb704a576 --- /dev/null +++ b/packages/ui/src/icons/CurrencyGbp.tsx @@ -0,0 +1,26 @@ +/* +Copyright 2024 Igor Artamonov + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +import * as React from 'react'; +import SvgIcon, {SvgIconProps} from '@material-ui/core/SvgIcon'; + +const CurrencyGbp: React.ComponentType = (props) => ( + + + +); + +export default CurrencyGbp; diff --git a/packages/ui/src/icons/index.ts b/packages/ui/src/icons/index.ts index e7cbed7aa..705d92586 100644 --- a/packages/ui/src/icons/index.ts +++ b/packages/ui/src/icons/index.ts @@ -32,6 +32,7 @@ export {default as CurrencyDai} from './CurrencyDai'; export {default as CurrencyEtc} from './CurrencyEtc'; export {default as CurrencyEth} from './CurrencyEth'; export {default as CurrencyUsd} from './CurrencyUsd'; +export {default as CurrencyGbp} from './CurrencyGbp'; export {default as CurrencyUsdc} from './CurrencyUsdc'; export {default as CurrencyUsdt} from './CurrencyUsdt'; export {default as Download} from './Download'; diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index b3e0a66f6..f67bcedc2 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -20,6 +20,7 @@ export { CurrencyEtc, CurrencyEth, CurrencyUsd, + CurrencyGbp, CurrencyUsdt, Download, EmoteHappy,