@@ -2,14 +2,14 @@ import React from 'react';
22import PropTypes from 'prop-types' ;
33import styled from 'styled-components' ;
44import { useSelector } from 'react-redux' ;
5- import { withRouter , Link } from 'react-router' ;
5+ import { withRouter } from 'react-router' ;
66
77import Screen from '../../components/mobile/MobileScreen' ;
88import Header from '../../components/mobile/Header' ;
99import IconButton from '../../components/mobile/IconButton' ;
1010import { ExitIcon , MoreIcon } from '../../common/icons' ;
1111import Footer from '../../components/mobile/Footer' ;
12- import { prop , remSize } from '../../theme' ;
12+ import { remSize } from '../../theme' ;
1313import SketchList from '../IDE/components/SketchList' ;
1414import CollectionList from '../IDE/components/CollectionList' ;
1515import AssetList from '../IDE/components/AssetList' ;
@@ -18,6 +18,8 @@ import { SketchSearchbar, CollectionSearchbar } from '../IDE/components/Searchba
1818import Button from '../../common/Button' ;
1919import useAsModal from '../../components/useAsModal' ;
2020import Dropdown from '../../components/Dropdown' ;
21+ import FooterTabSwitcher from '../../components/mobile/TabSwitcher' ;
22+ import FooterTab from '../../components/mobile/Tab' ;
2123
2224const EXAMPLE_USERNAME = 'p5' ;
2325
@@ -59,30 +61,6 @@ const ContentWrapper = styled(Content)`
5961 .sketches-table-container { padding-bottom: ${ remSize ( 160 ) } }
6062` ;
6163
62- const FooterTabSwitcher = styled . div `
63- display: flex;
64- justify-content: space-between;
65-
66- h3 { text-align: center; width: 100%; }
67- border-top: 1px solid ${ prop ( 'Separator' ) } ;
68-
69- background: ${ props => prop ( 'backgroundColor' ) } ;
70- ` ;
71-
72- const FooterTab = styled ( Link ) `
73- box-sizing: border-box;
74-
75-
76- background: transparent;
77- /* border-top: ${ remSize ( 4 ) } solid ${ props => prop ( props . selected ? 'colors.p5jsPink' : 'MobilePanel.default.background' ) } ; */
78- border-top: ${ remSize ( 4 ) } solid ${ props => ( props . selected ? prop ( 'colors.p5jsPink' ) : 'transparent' ) } ;
79-
80- color: ${ prop ( 'primaryTextColor' ) } ;
81-
82- padding: ${ remSize ( 8 ) } ${ remSize ( 16 ) } ;
83- width: 30%;
84- ` ;
85-
8664const Subheader = styled . div `
8765 display: flex;
8866 flex-direction: row;
0 commit comments