fix: big wizard fixes

This commit is contained in:
Taranto 2020-10-16 12:02:07 +01:00 committed by Josh Harvey
parent 89bb9a8f25
commit 0a491e0522
10 changed files with 9 additions and 18 deletions

View file

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View file

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="12" height="12" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="12" height="12" rx="3" ry="3" fill="#ff7311"/>
</svg>

Before

Width:  |  Height:  |  Size: 250 B

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="12" height="12" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="12" height="12" rx="3" ry="3" fill="#ff584a"/>
</svg>

Before

Width:  |  Height:  |  Size: 250 B

View file

@ -66,9 +66,7 @@ const GET_DATA = gql`
const Main = () => { const Main = () => {
const classes = useStyles() const classes = useStyles()
const { data, loading } = useQuery(GET_DATA, { const { data, loading } = useQuery(GET_DATA)
notifyOnNetworkStatusChange: true
})
if (loading) { if (loading) {
return <></> return <></>
@ -79,7 +77,7 @@ const Main = () => {
return ( return (
<div className={classes.root}> <div className={classes.root}>
<Router> <Router>
{wizardStep && <Wizard wizardStep={wizardStep} />} {wizardStep > 0 && <Wizard wizardStep={wizardStep} />}
<Header tree={tree} /> <Header tree={tree} />
<main className={classes.wrapper}> <main className={classes.wrapper}>
<Routes /> <Routes />

View file

@ -91,6 +91,7 @@ const ETable = ({
const onReset = () => { const onReset = () => {
setAdding(false) setAdding(false)
setEditingId(null)
setEditing && setEditing(false) setEditing && setEditing(false)
} }

View file

@ -59,7 +59,7 @@ const STEPS = [
{ {
id: 'wallet', id: 'wallet',
Component: Wallet, Component: Wallet,
exImage: '/fullexample.wallet.png', exImage: '/assets/wizard/fullexample.wallet.png',
subtitle: 'Wallet settings', subtitle: 'Wallet settings',
text: `Your wallet settings are the first step for this wizard. We'll start text: `Your wallet settings are the first step for this wizard. We'll start
by setting one of cryptocurrency to get you up and running, but you by setting one of cryptocurrency to get you up and running, but you
@ -68,7 +68,7 @@ const STEPS = [
{ {
id: 'locale', id: 'locale',
Component: Locale, Component: Locale,
exImage: '/fullexample.locale.png', exImage: '/assets/wizard/fullexample.locale.png',
subtitle: 'Locales', subtitle: 'Locales',
text: `From the Locales page, you can define some important default settings text: `From the Locales page, you can define some important default settings
of your machines. These values will be the default values of all of your machines. These values will be the default values of all
@ -80,7 +80,7 @@ const STEPS = [
{ {
id: 'twilio', id: 'twilio',
Component: Twilio, Component: Twilio,
exImage: '/fullexample.twilio.png', exImage: '/assets/wizard/fullexample.twilio.png',
subtitle: 'Twilio (SMS service)', subtitle: 'Twilio (SMS service)',
text: ( text: (
<> <>
@ -95,7 +95,7 @@ const STEPS = [
{ {
id: 'commissions', id: 'commissions',
Component: Commissions, Component: Commissions,
exImage: '/fullexample.commissions.png', exImage: '/assets/wizard/fullexample.commissions.png',
subtitle: 'Commissions', subtitle: 'Commissions',
text: `From the Commissions page, you can define all the commissions of your text: `From the Commissions page, you can define all the commissions of your
machines. The values set here will be default values of all machines machines. The values set here will be default values of all machines
@ -107,7 +107,7 @@ const STEPS = [
// { // {
// id: 'notifications', // id: 'notifications',
// Component: Notifications, // Component: Notifications,
// exImage: '/fullexample.notifications.png', // exImage: '/assets/wizard/fullexample.notifications.png',
// subtitle: 'Notifications', // subtitle: 'Notifications',
// text: `Your notification settings will allow customize what notifications you // text: `Your notification settings will allow customize what notifications you
// get and where. You can later override all default balance alerts setup // get and where. You can later override all default balance alerts setup
@ -116,7 +116,7 @@ const STEPS = [
// { // {
// id: 'operatorInfo', // id: 'operatorInfo',
// Component: WizardOperatorInfo, // Component: WizardOperatorInfo,
// exImage: '/fullexample.operatorinfo.png', // exImage: '/assets/wizard/fullexample.operatorinfo.png',
// subtitle: 'Operator info', // subtitle: 'Operator info',
// text: `Your contact information is important for your customer to be able // text: `Your contact information is important for your customer to be able
// to contact you in case theres a problem with one of your machines. // to contact you in case theres a problem with one of your machines.