Add currency XAF, TZS. Fix XOF icon.

This commit is contained in:
Reckless_Satoshi 2022-04-17 14:17:52 -07:00
parent 9297ddfb2a
commit 2f1f82f1a6
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
4 changed files with 10 additions and 6 deletions

View File

@ -66,8 +66,10 @@ export default function getFlags(code){
if(code == 'THB') flag = <Flags.TH {...props}/>; if(code == 'THB') flag = <Flags.TH {...props}/>;
if(code == 'TTD') flag = <Flags.TT {...props}/>; if(code == 'TTD') flag = <Flags.TT {...props}/>;
if(code == 'VND') flag = <Flags.VN {...props}/>; if(code == 'VND') flag = <Flags.VN {...props}/>;
if(code == 'XOF') flag = <Flags.SE {...props}/>; if(code == 'XOF') flag = <Flags.BJ {...props}/>;
if(code == 'TWD') flag = <Flags.TW {...props}/>; if(code == 'TWD') flag = <Flags.TW {...props}/>;
if(code == 'TZS') flag = <Flags.TZ {...props}/>;
if(code == 'XAF') flag = <Flags.CM {...props}/>;
if(code == 'ANY') flag = <EarthIcon {...props}/>; if(code == 'ANY') flag = <EarthIcon {...props}/>;
if(code == 'XAU') flag = <GoldIcon {...props}/>; if(code == 'XAU') flag = <GoldIcon {...props}/>;
if(code == 'BTC') flag = <SwapCallsIcon color="primary"/>; if(code == 'BTC') flag = <SwapCallsIcon color="primary"/>;

View File

@ -59,7 +59,9 @@
"58":"TTD", "58":"TTD",
"59":"VND", "59":"VND",
"60":"XOF", "60":"XOF",
"61":"TWD", "61":"TWD",
"62":"TZS",
"63":"XAF",
"300":"XAU", "300":"XAU",
"1000":"BTC" "1000":"BTC"
} }

File diff suppressed because one or more lines are too long

View File

@ -23,13 +23,13 @@ Running the full stack is not easy, since RoboSats needs of many services. Howev
6 - Pick a RoboSats backend to test the new frontend: e.g. "robosats.onion.moe", or "unsafe.testnet.robosats.com". You can also use the onion services also if you are using Brave or Tor Browser (untested!) 6 - Pick a RoboSats backend to test the new frontend: e.g. "robosats.onion.moe", or "unsafe.testnet.robosats.com". You can also use the onion services also if you are using Brave or Tor Browser (untested!)
7 - Open requestly extension and add a new redirect rule. Make "{robosats-site}/static/frontend/main.js" redirect to "127.0.0.1:8080/main.js" and save the changes. 7 - Open Requestly extension and add a new redirect rule. Make "{robosats-site}/static/frontend/main.js" redirect to "127.0.0.1:8080/main.js" and save the changes.
------------------- -------------------
**You are ready to go!** Edit the frontend code in `/frontend/src/` to make the changes you want. Withing a few seconds, the `npm run dev` process will pack the code into the local `main.js`. Visit your selected {robosats-site} and you will see your new awesome frontend! :) **You are ready to go!** Edit the frontend code in `/frontend/src/` to make the changes you want. Within a few seconds, the `npm run dev` process will pack the code into the local `main.js`. Visit your selected {robosats-site} and you will see your new awesome frontend! :)
Everytime you save changes to files in `/frontend/src` you will be able to see them in your browser after a few seconds using force refresh (Ctrl+Shift+R). If you need to edit CSS or other static files, simply add them to Requestly in the same way. Every time you save changes to files in `/frontend/src` you will be able to see them in your browser after a few seconds using force refresh (Ctrl+Shift+R). If you need to edit CSS or other static files, simply add them to Requestly in the same way.
# Full Stack Development # Full Stack Development
## The Easy Way: Docker-compose (-dev containers running on testnet) ## The Easy Way: Docker-compose (-dev containers running on testnet)