From 4c86468e50142026ca72fd0ea87535fe931f3701 Mon Sep 17 00:00:00 2001 From: Jake Dexheimer Date: Sun, 25 Feb 2018 10:25:29 -0600 Subject: [PATCH] Rename ResolutionSelect --- ...esolutionSelect.js => ExportSizeSelect.js} | 30 +++++++++---------- components/Settings.js | 8 ++--- lib/constants.js | 12 ++++---- lib/routing.js | 2 +- pages/editor.js | 16 +++++----- 5 files changed, 34 insertions(+), 34 deletions(-) rename components/{ResolutionSelect.js => ExportSizeSelect.js} (69%) diff --git a/components/ResolutionSelect.js b/components/ExportSizeSelect.js similarity index 69% rename from components/ResolutionSelect.js rename to components/ExportSizeSelect.js index af754d3..e881fd3 100644 --- a/components/ResolutionSelect.js +++ b/components/ExportSizeSelect.js @@ -1,7 +1,7 @@ import React from 'react' import { COLORS } from '../lib/constants' import Checkmark from './svg/Checkmark' -import { RESOLUTIONS } from '../lib/constants' +import { EXPORT_SIZES } from '../lib/constants' export default class extends React.Component { constructor(props) { @@ -11,9 +11,9 @@ export default class extends React.Component { this.toggle = this.toggle.bind(this) } - select(resolution) { - if (this.props.selected !== resolution) { - this.props.onChange(resolution) + select(exportSize) { + if (this.props.selected !== exportSize) { + this.props.onChange(exportSize) } } @@ -21,12 +21,12 @@ export default class extends React.Component { this.setState({ isVisible: !this.state.isVisible }) } - renderResolutions() { - return RESOLUTIONS.map((resolution, i) => { + renderExportSizes() { + return EXPORT_SIZES.map((exportSize, i) => { return ( -
- {resolution.name} - {this.props.selected === resolution.id ? : null} +
+ {exportSize.name} + {this.props.selected === exportSize.id ? : null}