Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Rev 1966 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1963
Línea 10... Línea 10...
10
import Location from "./location/Location";
10
import Location from "./location/Location";
11
import Notifications from "./notifications/Notifications";
11
import Notifications from "./notifications/Notifications";
12
import Privacy from "./privacy/Privacy";
12
import Privacy from "./privacy/Privacy";
13
import SocialNetworks from "./social-networks/SocialNetworks";
13
import SocialNetworks from "./social-networks/SocialNetworks";
14
import Transactions from "./transactions/Transactions";
14
import Transactions from "./transactions/Transactions";
-
 
15
import CloseAccount from "./close-account/CloseAccount";
Línea 15... Línea 16...
15
 
16
 
16
const StyledNavTabs = styled.div`
17
const StyledNavTabs = styled.div`
17
  a {
18
  a {
18
    cursor: pointer;
19
    cursor: pointer;
Línea 32... Línea 33...
32
  SOCIAL_NETWORKS: "SOCIAL_NETWORKS",
33
  SOCIAL_NETWORKS: "SOCIAL_NETWORKS",
33
  TRANSACTIONS: "TRANSACTIONS",
34
  TRANSACTIONS: "TRANSACTIONS",
34
  BROWSERS: "BROWSERS",
35
  BROWSERS: "BROWSERS",
35
  IPS: "IPS",
36
  IPS: "IPS",
36
  DEVICES: "DEVICES",
37
  DEVICES: "DEVICES",
-
 
38
  CLOSE_ACCOUNT: "CLOSE_ACCOUNT",
37
};
39
};
Línea 38... Línea 40...
38
 
40
 
39
const AccountSettings = (props) => {
41
const AccountSettings = (props) => {
40
  // props destructuring
42
  // props destructuring
Línea 95... Línea 97...
95
        return <Browsers routeBrowsers={routeBrowsers} />;
97
        return <Browsers routeBrowsers={routeBrowsers} />;
96
      case TABS.IPS:
98
      case TABS.IPS:
97
        return <Ips routeIPs={routeIPs} />;
99
        return <Ips routeIPs={routeIPs} />;
98
      case TABS.DEVICES:
100
      case TABS.DEVICES:
99
        return <Devices routeDevices={routeDevices} />;
101
        return <Devices routeDevices={routeDevices} />;
-
 
102
      case TABS.CLOSE_ACCOUNT:
-
 
103
        return <CloseAccount />;
100
      case TABS.default:
104
      case TABS.default:
101
        return <BasicSettings />;
105
        return <BasicSettings />;
102
    }
106
    }
103
  };
107
  };
Línea 200... Línea 204...
200
                    id="nav-social-networks-tab"
204
                    id="nav-social-networks-tab"
201
                    onClick={(e) => handleChangeTab(e, TABS.TRANSACTIONS)}
205
                    onClick={(e) => handleChangeTab(e, TABS.TRANSACTIONS)}
202
                  >
206
                  >
203
                    <i className="fa fa-money"></i>Transacciones
207
                    <i className="fa fa-money"></i>Transacciones
204
                  </a>
208
                  </a>
-
 
209
                  <a
-
 
210
                    className={`nav-item nav-link ${
-
 
211
                      currentTab === TABS.CLOSE_ACCOUNT ? "active" : ""
-
 
212
                    }`}
-
 
213
                    id="nav-social-networks-tab"
-
 
214
                    onClick={(e) => handleChangeTab(e, TABS.CLOSE_ACCOUNT)}
-
 
215
                  >
-
 
216
                    <i className="fa fa-trash"></i>Cerrar cuenta
-
 
217
                  </a>
205
                  {/* <a
218
                  {/* <a
206
                    className={`nav-item nav-link ${
219
                    className={`nav-item nav-link ${
207
                      currentTab === TABS.BROWSERS ? "active" : ""
220
                      currentTab === TABS.BROWSERS ? "active" : ""
208
                    }`}
221
                    }`}
209
                    id="nav-social-networks-tab"
222
                    id="nav-social-networks-tab"