1
0
mirror of synced 2025-01-18 14:14:03 +01:00

Encode unicode in JSX differently to attempt to fix issue with unicode translation on some non-utf8 systems.

This commit is contained in:
Jennifer Taylor 2020-12-17 21:47:36 +00:00
parent b7bd09bb62
commit 68c1b7cc63
6 changed files with 10 additions and 10 deletions

View File

@ -5,8 +5,8 @@ var Checkbox = React.createClass({
return (
<span className={this.props.className} onClick={this.props.onClick}>
{this.props.checked ?
<span className="checkbox">&#9745;</span> :
<span className="checkbox">&#9744;</span>
<span className="checkbox">{ "\u2611" }</span> :
<span className="checkbox">{ "\u2610" }</span>
}
</span>
);

View File

@ -12,7 +12,7 @@ var Nav = React.createClass({
<span>
{this.props.title}
{this.props.showAlert ?
<span className="alert">&#9888;</span> :
<span className="alert">{ "\u26a0" }</span> :
null
}
</span>

View File

@ -64,19 +64,19 @@ var Table = React.createClass({
var click = null;
if (index == this.state.sortCol) {
if (this.state.sortDir < 0) {
sort = <span className="sort"> &#8593;</span>;
sort = <span className="sort">{ " \u2191" }</span>;
click = function() {
this.setState({sortDir: 1});
}.bind(this);
} else {
sort = <span className="sort"> &#8595;</span>;
sort = <span className="sort">{ " \u2193" }</span>;
click = function() {
this.setState({sortDir: -1});
}.bind(this);
}
} else {
if (column.sort) {
sort = <span className="sort"> &#8597;</span>;
sort = <span className="sort">{ " \u2195" }</span>;
click = function() {
this.setState({sortCol: index, sortDir: column.reverse ? 1 : -1});
}.bind(this);

View File

@ -481,7 +481,7 @@ var arcade_management = React.createClass({
null
}
{ this.state.settings_saved[this.state.current_setting] ?
<span>&#x2713;</span> :
<span>{ "\u2713" }</span> :
null
}
</div>

View File

@ -378,7 +378,7 @@ var settings_view = React.createClass({
null
}
{ this.state.options_saved[this.state.version] ?
<span>&#x2713;</span> :
<span>{ "\u2713" }</span> :
null
}
</div> : null

View File

@ -389,7 +389,7 @@ var settings_view = React.createClass({
null
}
{ this.state.theme_saved[this.state.version] ?
<span>&#x2713;</span> :
<span>{ "\u2713" }</span> :
null
}
</div>
@ -429,7 +429,7 @@ var settings_view = React.createClass({
null
}
{ this.state.menu_saved[this.state.version] ?
<span>&#x2713;</span> :
<span>{ "\u2713" }</span> :
null
}
</div>