This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import PropTypes from "prop-types"; | |
import ScrollMenu from "react-horizontal-scrolling-menu"; | |
import "./styles.css"; | |
let list = [ | |
{ name: "item1" }, | |
{ name: "item2" }, | |
{ name: "item3" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import ScrollMenu from "react-horizontal-scrolling-menu"; | |
import "./App.css"; | |
let list = [ | |
{ name: "item1" }, | |
{ name: "item2" }, | |
{ name: "item3" }, | |
{ name: "item4" }, | |
{ name: "item5" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
import AdUnit from "../AdUnit"; | |
import NavList from "../NavList"; | |
import Footer from "../theme/Footer"; | |
import Header from "../theme/Header"; | |
import Chart from "react-apexcharts"; | |
import OwlCarousel from "react-owl-carousel"; | |
import "owl.carousel/dist/assets/owl.carousel.css"; | |
import "owl.carousel/dist/assets/owl.theme.default.css"; | |
import TabPanel from "../TabPanel"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parties": [ | |
"BEBAS", | |
"BERJAYA", | |
"BN", | |
"DAP", | |
"MOMOGUN", | |
"NASMA", | |
"PAS", | |
"PASOK", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [candidateParties, setCandidateParties] = useState([]); | |
const dispatch = useDispatch(); | |
const currentParty = useSelector(currentSelectedParty); | |
useEffect(() => { | |
(async () => { | |
await fetch(`http://localhost:3000/api/v1/candidates/parties`) | |
.then((res) => res.json()) | |
.then((result) => { | |
setCandidateParties(result.parties); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"debug": { | |
"currentTime": "19:52:39", | |
"currentDay": "FRI" | |
}, | |
"data": [{ | |
"main_category": "Near by Shops", | |
"store_category_id": 1, | |
"store_category_name": "Stores", | |
"stores": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const AuthContext = React.createContext(); | |
const [state, dispatch] = React.useReducer( | |
(prevState, action) => { | |
switch (action.type) { | |
case "RESTORE_TOKEN": | |
return { | |
...prevState, | |
userToken: action.token, | |
isLoading: false, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let huaweiDevices = [ | |
"WGR-W09", | |
"WGR-W19", | |
"WGR-AN19", | |
"MRR-W29", | |
"BRQ-AN00", | |
"OCE-AN50", | |
"ANA-AL00", | |
"TET-AN00", | |
"BRQ-AN00", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../topeka-elements/avatars.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<link rel="import" href="../topeka-elements/topeka-datasource.html"> | |
<polymer-element name="my-element"> |