-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18506 from wordpress-mobile/task/site-design-remo…
…ve-buttons-filtering [Site Design Revamp] Main View - remove filtering and action buttons
- Loading branch information
Showing
7 changed files
with
146 additions
and
126 deletions.
There are no files selected for viewing
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
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
7 changes: 7 additions & 0 deletions
7
...Press/Classes/ViewRelated/Site Creation/Design Selection/RemoteSiteDesign+Thumbnail.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Foundation | ||
|
||
extension RemoteSiteDesign: Thumbnail { | ||
var urlDesktop: String? { screenshot } | ||
var urlTablet: String? { tabletScreenshot } | ||
var urlMobile: String? { mobileScreenshot} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
WordPress/Classes/ViewRelated/Site Creation/Design Selection/SiteDesignSection.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Foundation | ||
|
||
class SiteDesignSection: CategorySection { | ||
var category: RemoteSiteDesignCategory | ||
var designs: [RemoteSiteDesign] | ||
|
||
var categorySlug: String { category.slug } | ||
var title: String { category.title } | ||
var emoji: String? { category.emoji } | ||
var description: String? { category.description } | ||
var thumbnails: [Thumbnail] { designs } | ||
var scrollOffset: CGPoint | ||
|
||
init(category: RemoteSiteDesignCategory, designs: [RemoteSiteDesign]) { | ||
self.category = category | ||
self.designs = designs | ||
self.scrollOffset = .zero | ||
} | ||
} |
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
Oops, something went wrong.