diff --git a/frontend/src/basic/RobotPage/Welcome.tsx b/frontend/src/basic/RobotPage/Welcome.tsx index b40e83525..a812bea89 100644 --- a/frontend/src/basic/RobotPage/Welcome.tsx +++ b/frontend/src/basic/RobotPage/Welcome.tsx @@ -4,9 +4,10 @@ import { Box, Button, Grid, Typography, useTheme } from '@mui/material'; import { RoboSatsTextIcon } from '../../components/Icons'; import { FastForward, RocketLaunch, Key } from '@mui/icons-material'; import { genBase62Token } from '../../utils'; -import { UseAppStoreType, AppContext } from '../../contexts/AppContext'; import { UseFederationStoreType, FederationContext } from '../../contexts/FederationContext'; import { UseGarageStoreType, GarageContext } from '../../contexts/GarageContext'; +import { useNavigate } from 'react-router-dom'; +import { UseAppStoreType, AppContext } from '../../contexts/AppContext'; interface WelcomeProps { setView: (state: 'welcome' | 'onboarding' | 'recovery' | 'profile') => void; @@ -15,7 +16,9 @@ interface WelcomeProps { } const Welcome = ({ setView, width, setInputToken }: WelcomeProps): JSX.Element => { + const { setPage } = useContext(AppContext); const { t } = useTranslation(); + const navigate = useNavigate(); const theme = useTheme(); const { setOpen } = useContext(AppContext); const { garage } = useContext(GarageContext); @@ -117,14 +120,15 @@ const Welcome = ({ setView, width, setInputToken }: WelcomeProps): JSX.Element = size='small' color='primary' onClick={() => { - setView('profile'); const token = genBase62Token(36); garage.createRobot(federation, token); setInputToken(token); + navigate('/create'); + setPage('create'); }} >
- {t('Fast Generate Robot')} + {t('Fast Generate Order')} diff --git a/frontend/static/assets/vector/buy-selected-icon-2.svg b/frontend/static/assets/vector/buy-selected-icon-2.svg index 330c0a8e4..993f9b817 100644 --- a/frontend/static/assets/vector/buy-selected-icon-2.svg +++ b/frontend/static/assets/vector/buy-selected-icon-2.svg @@ -4,75 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - - -======= ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/assets/vector/sell-icon-2.svg b/frontend/static/assets/vector/sell-icon-2.svg index bff4eed1f..7148b0558 100644 --- a/frontend/static/assets/vector/sell-icon-2.svg +++ b/frontend/static/assets/vector/sell-icon-2.svg @@ -4,89 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - - - - - - - - - -======= ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/assets/vector/sell-selected-icon-2.svg b/frontend/static/assets/vector/sell-selected-icon-2.svg index 90355d26a..ac2e47884 100644 --- a/frontend/static/assets/vector/sell-selected-icon-2.svg +++ b/frontend/static/assets/vector/sell-selected-icon-2.svg @@ -4,61 +4,6 @@ -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - -======= @@ -280,6 +225,5 @@ v91.201c0,2.378-0.841,4.516-2.646,6.729c-1.427,1.743-3.589,3.695-6.706,6.043c2.033,2.428,3.807,5.055,5.295,7.841 C254.836,164.996,256.054,177.466,252.471,189.264z"/> ->>>>>>> add-art-0.1.2 diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json index 98249816b..f4966612e 100644 --- a/frontend/static/locales/ca.json +++ b/frontend/static/locales/ca.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Un Simple i Privat Exchange LN P2P", "Create a new robot and learn to use RoboSats": "Crear un nou robot i aprendre a fer servir RoboSats", - "Fast Generate Robot": "Generar Robot ràpidament", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recuperar un robot existent utilitzant el teu token", "Start": "Començar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json index d9625740a..87d1bee43 100644 --- a/frontend/static/locales/cs.json +++ b/frontend/static/locales/cs.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json index d34bc5d8c..42197cc90 100644 --- a/frontend/static/locales/de.json +++ b/frontend/static/locales/de.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json index 19dc219bf..f1d7089d3 100644 --- a/frontend/static/locales/en.json +++ b/frontend/static/locales/en.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json index 950ab0164..fc642aeef 100644 --- a/frontend/static/locales/es.json +++ b/frontend/static/locales/es.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Un exchange LN P2P sencillo y privado", "Create a new robot and learn to use RoboSats": "Crea un nuevo robot y aprende a usar RoboSats", - "Fast Generate Robot": "Genera un Robot al instante", + "Fast Generate Order": "Genera una Orden al instante", "Recover an existing robot using your token": "Recupera un robot existente usando tu token", "Start": "Empezar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json index b4965a667..c0e566204 100644 --- a/frontend/static/locales/eu.json +++ b/frontend/static/locales/eu.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json index e3d20c1b7..ce60d20f0 100644 --- a/frontend/static/locales/fr.json +++ b/frontend/static/locales/fr.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Une bourse d'échange P2P LN simple et privée", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Génération rapide d'un robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Récupérer un robot existant à l'aide de votre jeton", "Start": "Commencer", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json index 118856da3..a7cc08592 100644 --- a/frontend/static/locales/it.json +++ b/frontend/static/locales/it.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Una piattaforma di scambi P2P su LN semplice e privata", "Create a new robot and learn to use RoboSats": "Crea un nuovo robot e impara ad utilizzare RoboSats", - "Fast Generate Robot": "Generazione rapida di un robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recupera un robot esistente con il tuo token", "Start": "Inizia", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json index 405d1df2f..c55a674cb 100644 --- a/frontend/static/locales/ja.json +++ b/frontend/static/locales/ja.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "シンプルでプライベートなライトニングP2P取引所", "Create a new robot and learn to use RoboSats": "新しいロボットを構築して、RoboSatsの使い方を学びます", - "Fast Generate Robot": "ロボットを高速生成", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "トークンを使用して既存のロボットを復元します", "Start": "スタート", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json index b82a3809c..4314c78d5 100644 --- a/frontend/static/locales/pl.json +++ b/frontend/static/locales/pl.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json index 0120a9594..039ae0423 100644 --- a/frontend/static/locales/pt.json +++ b/frontend/static/locales/pt.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Uma Exchange P2P LN Simples e Privada", "Create a new robot and learn to use RoboSats": "Crie um novo robô e aprenda a usar o RoboSats", - "Fast Generate Robot": "Gere um robô rapidamente", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recupere um robô existente usando seu token", "Start": "Iniciar", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json index 5854c2548..bbb756823 100644 --- a/frontend/static/locales/ru.json +++ b/frontend/static/locales/ru.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Простой и приватный LN P2P обменник", "Create a new robot and learn to use RoboSats": "Создайте нового робота и научитесь использовать RoboSats", - "Fast Generate Robot": "Быстрое создание робота", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Восстановить существующего робота с помощью вашего токена", "Start": "Старт", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json index 71aca04ab..8b00af683 100644 --- a/frontend/static/locales/sv.json +++ b/frontend/static/locales/sv.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json index d17dd6643..69f152cd6 100644 --- a/frontend/static/locales/sw.json +++ b/frontend/static/locales/sw.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "Kubadilishana LN P2P Rahisi na Binafsi", "Create a new robot and learn to use RoboSats": "Unda roboti mpya na ujifunze kutumia RoboSats", - "Fast Generate Robot": "Unda Roboti Haraka", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Rejesha roboti iliyopo kwa kutumia alama yako", "Start": "Anza", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json index 32ffaa4c0..58afd9dc4 100644 --- a/frontend/static/locales/th.json +++ b/frontend/static/locales/th.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "A Simple and Private LN P2P Exchange", "Create a new robot and learn to use RoboSats": "Create a new robot and learn to use RoboSats", - "Fast Generate Robot": "Fast Generate Robot", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "Recover an existing robot using your token", "Start": "Start", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json index cb79318ad..cfdacbb87 100644 --- a/frontend/static/locales/zh-SI.json +++ b/frontend/static/locales/zh-SI.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "一个简单且隐秘的点对点闪电交易所", "Create a new robot and learn to use RoboSats": "创建一个新的机器人并学习如何使用 RoboSats", - "Fast Generate Robot": "快速生成机器人", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "用你的令牌恢复现有的机器人", "Start": "开始", "#11": "Phrases in basic/RobotPage/index.tsx", diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json index fb9b4058b..6094684fe 100644 --- a/frontend/static/locales/zh-TR.json +++ b/frontend/static/locales/zh-TR.json @@ -61,7 +61,7 @@ "#10": "Phrases in basic/RobotPage/Welcome.tsx", "A Simple and Private LN P2P Exchange": "一個簡單且隱密的點對點閃電交易所", "Create a new robot and learn to use RoboSats": "創建一個新的機器人並學習如何使用 RoboSats", - "Fast Generate Robot": "快速生成機器人", + "Fast Generate Order": "Fast Generate Order", "Recover an existing robot using your token": "用你的領牌恢復現有的機器人", "Start": "開始", "#11": "Phrases in basic/RobotPage/index.tsx",