mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
* Forms and board tweaks for small screen sizes * Re-style game status indicators * Re-style viewing/offline indicator * Better eyecons 👁 * Re-organise CSS according to ITCSS principles * Pick new font from Google Fonts * Fix up tests * Move some things into partials
23 lines
430 B
JavaScript
23 lines
430 B
JavaScript
import React from "react";
|
|
import _ from "lodash";
|
|
|
|
const RANK_LABELS = [1, 2, 3, 4, 5, 6, 7, 8];
|
|
|
|
const renderRankLabels = () => {
|
|
return _.map(RANK_LABELS, (rankLabel) => {
|
|
return (
|
|
<div key={rankLabel} className="board__label">{rankLabel}</div>
|
|
);
|
|
});
|
|
};
|
|
|
|
const RankLabels = () => {
|
|
return (
|
|
<div className="board__rank-labels">
|
|
{renderRankLabels()}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default RankLabels;
|