Skip to content

Commit

Permalink
add a disclaimer about multi mapping only working on Profile 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bsstephan committed Mar 25, 2024
1 parent 7aef83e commit 580eb5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 6 additions & 5 deletions www/src/Locales/en/MultiMapping.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
export default {
'header-text': 'Multi Mapping',
placeholder: `Select Option(s)`,
actions: {
RESERVED: 'Reserved',
ASSIGNED_TO_ADDON: 'Assigned to addon',
BUTTON_PRESS_TURBO: 'Assigned to turbo',
'placeholder': `Select Option(s)`,
'profile-limitation': 'NOTE: This feature currently only affects Profile 1 (the main Pin Mapping).',
'actions': {
'RESERVED': 'Reserved',
'ASSIGNED_TO_ADDON': 'Assigned to addon',
'BUTTON_PRESS_TURBO': 'Assigned to turbo',
},
};
9 changes: 8 additions & 1 deletion www/src/Pages/MultiMappingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React, {
useState,
} from 'react';
import Select from 'react-select';
import { Alert, Button, Form } from 'react-bootstrap';
import { Alert, Button, Form, Row } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import zip from 'lodash/zip';
import omit from 'lodash/omit';
Expand Down Expand Up @@ -139,6 +139,13 @@ export default function MultiMappingPage() {
return (
<>
<Section title={t('MultiMapping:header-text')}>
<Row className="mb-3">
<p>
{t(
'MultiMapping:profile-limitation',
)}
</p>
</Row>
<Form onSubmit={handleSubmit}>
<div className="gx-3">
{pinList.map(([cell1, cell2], i) => (
Expand Down

0 comments on commit 580eb5e

Please sign in to comment.