-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing logo size in templates (#267)
* Added LogoSize component to previewWindow side bar Also set initial value in reducer * Hook up logoSize to templates * Refactored other components + Bumped resize size from 125px to 500px. + Added new string: “Logo Size” for translation + Updated CSS
- Loading branch information
Showing
8 changed files
with
92 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Libs | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Section, Label, Range } from '../shared'; | ||
|
||
function LogoSize({ t, logoSize, handleInputChange, UILang }) { | ||
return ( | ||
<Section> | ||
<Label> | ||
{t('preview:sidebar:logoSize', { lng: UILang })} | ||
</Label> | ||
<Range | ||
name="logoSize" | ||
type="range" | ||
min="5" | ||
max="50" | ||
step="2.5" | ||
value={logoSize} | ||
onChange={handleInputChange} | ||
/> | ||
</Section> | ||
); | ||
} | ||
|
||
LogoSize.propTypes = { | ||
logoSize: PropTypes.string.isRequired, | ||
handleInputChange: PropTypes.func.isRequired, | ||
t: PropTypes.func.isRequired, | ||
UILang: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default LogoSize; |
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
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