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
enum unicode_names { | |
ARING_LC, | |
ARING_UC | |
}; | |
const uint32_t PROGMEM unicode_map[] = { | |
[ARING_LC] = 0x00E5, // å | |
[ARING_UC] = 0x00C5, // Å | |
}; |
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
class ControlledSlider extends React.Component { | |
state = { | |
values: [this.props.defaultValue], | |
update: [this.props.defaultValue] | |
} | |
onUpdate = update => { | |
this.setState({ update }) | |
this.props.onUpdate && this.props.onUpdate(update[0]) | |
} |
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
class SliderWrapper extends React.Component { | |
state = { | |
sum: value, | |
sliderSum: value, | |
step: step | |
} | |
onInputChange = value => { | |
if (value) { | |
const sum = parseInt(value, 10) |
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
import React from "react" | |
import PropTypes from "prop-types" | |
import styled from "styled-components" | |
const CaretIcon = styled.svg` | |
width: 12px; | |
transition: fill 0.2s ease; | |
` | |
const Caret = ({ className }) => ( |