@@ -2,14 +2,14 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import styled from 'styled-components' ;
4
4
import { useSelector } from 'react-redux' ;
5
- import { withRouter , Link } from 'react-router' ;
5
+ import { withRouter } from 'react-router' ;
6
6
7
7
import Screen from '../../components/mobile/MobileScreen' ;
8
8
import Header from '../../components/mobile/Header' ;
9
9
import IconButton from '../../components/mobile/IconButton' ;
10
10
import { ExitIcon , MoreIcon } from '../../common/icons' ;
11
11
import Footer from '../../components/mobile/Footer' ;
12
- import { prop , remSize } from '../../theme' ;
12
+ import { remSize } from '../../theme' ;
13
13
import SketchList from '../IDE/components/SketchList' ;
14
14
import CollectionList from '../IDE/components/CollectionList' ;
15
15
import AssetList from '../IDE/components/AssetList' ;
@@ -18,6 +18,8 @@ import { SketchSearchbar, CollectionSearchbar } from '../IDE/components/Searchba
18
18
import Button from '../../common/Button' ;
19
19
import useAsModal from '../../components/useAsModal' ;
20
20
import Dropdown from '../../components/Dropdown' ;
21
+ import FooterTabSwitcher from '../../components/mobile/TabSwitcher' ;
22
+ import FooterTab from '../../components/mobile/Tab' ;
21
23
22
24
const EXAMPLE_USERNAME = 'p5' ;
23
25
@@ -59,30 +61,6 @@ const ContentWrapper = styled(Content)`
59
61
.sketches-table-container { padding-bottom: ${ remSize ( 160 ) } }
60
62
` ;
61
63
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
-
86
64
const Subheader = styled . div `
87
65
display: flex;
88
66
flex-direction: row;
0 commit comments