Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Remove row control for topSites on new tab page #5483

Merged
merged 1 commit into from
Nov 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions js/about/newtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const aboutActions = require('./aboutActions')
const siteUtil = require('../state/siteUtil')
const urlutils = require('../lib/urlutil')
const siteTags = require('../constants/siteTags')
const cx = require('../lib/classSet.js')
const config = require('../constants/config')
const backgrounds = require('../data/backgrounds')

Expand Down Expand Up @@ -262,7 +261,6 @@ class NewTabPage extends React.Component {
return null
}

const gridLayoutSize = this.gridLayoutSize
const gridLayout = this.gridLayout

const getLetterFromUrl = (url) => {
Expand All @@ -285,15 +283,6 @@ class NewTabPage extends React.Component {
<Clock />
</div>
<div className='topSitesContainer'>
<button
className={cx({
toggleTopSitesGridIcon: true,
hasThreeRows: gridLayoutSize === 'large',
hasTwoRows: gridLayoutSize === 'medium',
hasOneRow: gridLayoutSize === 'small'
})}
onClick={this.onChangeGridLayout.bind(this)}
/>
<nav className='topSitesGrid'>
{
gridLayout.map((site) =>
Expand Down