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 ( -