mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
refined rot selector
This commit is contained in:
@@ -88,15 +88,19 @@ const RotationSelector: React.FC<Props> = ({ rotationId, setRotationId }) => {
|
||||
isSalmonRun
|
||||
/>
|
||||
</Box>
|
||||
{filteredRotations && (
|
||||
{filteredRotations && filteredRotations.length > 0 && (
|
||||
<Box mt={4}>
|
||||
<FormLabel htmlFor="rotation">
|
||||
<Trans>Rotation</Trans>
|
||||
</FormLabel>
|
||||
<Select
|
||||
name="rotation"
|
||||
value="NO_VALUE"
|
||||
onChange={(e) => setRotationId(parseInt(e.target.value))}
|
||||
>
|
||||
<option hidden value="NO_VALUE">
|
||||
{t`Select rotation`}
|
||||
</option>
|
||||
{filteredRotations.map((rotation) => (
|
||||
<option key={rotation.id} value={rotation.id}>
|
||||
{new Date(rotation.startTime).toLocaleDateString()} -{" "}
|
||||
@@ -112,6 +116,14 @@ const RotationSelector: React.FC<Props> = ({ rotationId, setRotationId }) => {
|
||||
</Select>
|
||||
</Box>
|
||||
)}
|
||||
{filteredRotations && filteredRotations.length === 0 && (
|
||||
<Box mt={2} color="red.500">
|
||||
<Trans>
|
||||
No rotations matching with this criteria. Please choose different
|
||||
weapons.
|
||||
</Trans>
|
||||
</Box>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Bewegungssteuerung",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Motion",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "Stage",
|
||||
"Weapons": "Weapons",
|
||||
"Rotation": "Rotation",
|
||||
"Select rotation": "Select rotation",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "No rotations matching with this criteria. Please choose different weapons.",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Motion",
|
||||
"View results": "View results",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Giroscopio",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Joysticks",
|
||||
"Motion": "Gyroscope",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Sensori",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "",
|
||||
"Motion": "",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "스틱",
|
||||
"Motion": "모션 / 자이로",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "",
|
||||
"Motion": "",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Motion",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "",
|
||||
"Motion": "",
|
||||
"View results": "",
|
||||
|
||||
@@ -71,6 +71,8 @@
|
||||
"Stage": "",
|
||||
"Weapons": "",
|
||||
"Rotation": "",
|
||||
"Select rotation": "",
|
||||
"No rotations matching with this criteria. Please choose different weapons.": "",
|
||||
"Stick": "Stick",
|
||||
"Motion": "Motion",
|
||||
"View results": "Se resultat",
|
||||
|
||||
Reference in New Issue
Block a user