added Gengar template, optimized images for fast loading

This commit is contained in:
Amruth Pillai
2020-03-26 12:06:52 +05:30
parent 4b8cd1c66a
commit 3311e3b49b
11 changed files with 51318 additions and 43 deletions

View File

@ -2,19 +2,19 @@ import React, { useState, useContext } from 'react';
import AppContext from '../../context/AppContext';
import TabBar from '../../shared/TabBar';
import LayoutTab from './tabs/Layout';
import TemplatesTab from './tabs/Templates';
import ColorsTab from './tabs/Colors';
import FontsTab from './tabs/Fonts';
import ActionsTab from './tabs/Actions';
const tabs = ['Layout', 'Colors', 'Fonts', 'Actions'];
const tabs = ['Templates', 'Colors', 'Fonts', 'Actions'];
const RightSidebar = () => {
const context = useContext(AppContext);
const { state, dispatch } = context;
const { data, theme } = state;
const [currentTab, setCurrentTab] = useState('Layout');
const [currentTab, setCurrentTab] = useState('Templates');
const onChange = (key, value) => {
dispatch({
type: 'on_input',
@ -29,8 +29,8 @@ const RightSidebar = () => {
const renderTabs = () => {
switch (currentTab) {
case 'Layout':
return <LayoutTab theme={theme} onChange={onChange} />;
case 'Templates':
return <TemplatesTab theme={theme} onChange={onChange} />;
case 'Colors':
return <ColorsTab theme={theme} onChange={onChange} />;
case 'Fonts':