Compare commits

..

No commits in common. "e05e1e4f0f7eec4f54abecb4a137a6c127549103" and "98ecef7896e38bccd3f9237cf3e3498495b5ae6b" have entirely different histories.

2 changed files with 13 additions and 9 deletions

View File

@ -1288,6 +1288,7 @@ export default function App() {
saving={editModuleSaving} saving={editModuleSaving}
onNameChange={setEditModuleName} onNameChange={setEditModuleName}
onDescriptionChange={setEditModuleDesc} onDescriptionChange={setEditModuleDesc}
onCategoryChange={setEditModuleCategory}
onSave={handleSaveModuleDetails} onSave={handleSaveModuleDetails}
onClose={() => setSelectedEditModule(null)} onClose={() => setSelectedEditModule(null)}
/> />

View File

@ -11,6 +11,7 @@ interface EditModuleModalProps {
saving: boolean; saving: boolean;
onNameChange: (val: string) => void; onNameChange: (val: string) => void;
onDescriptionChange: (val: string) => void; onDescriptionChange: (val: string) => void;
onCategoryChange: (val: string) => void;
onSave: (e: React.FormEvent) => void; onSave: (e: React.FormEvent) => void;
onClose: () => void; onClose: () => void;
} }
@ -23,6 +24,7 @@ export const EditModuleModal: React.FC<EditModuleModalProps> = ({
saving, saving,
onNameChange, onNameChange,
onDescriptionChange, onDescriptionChange,
onCategoryChange,
onSave, onSave,
onClose, onClose,
}) => { }) => {
@ -67,16 +69,17 @@ export const EditModuleModal: React.FC<EditModuleModalProps> = ({
<div> <div>
<label className="block text-[10px] uppercase font-bold text-slate-500 mb-1">Category</label> <label className="block text-[10px] uppercase font-bold text-slate-500 mb-1">Category</label>
<input <select
type="text"
readOnly
disabled
value={normalizeCategory(category)} value={normalizeCategory(category)}
className="w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-500 cursor-not-allowed" onChange={(e) => onCategoryChange(e.target.value)}
/> className="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 focus:outline-none focus:border-indigo-500 cursor-pointer"
<p className="text-[10px] text-slate-400 mt-1"> >
Category is fixed to keep core Complete Pack entitlements consistent. Use Plans &amp; Pricing to create custom combo bundles. <option value="Points">Points</option>
</p> <option value="Patterns">Patterns</option>
<option value="Nutrition">Nutrition</option>
<option value="Therapeutics">Therapeutics</option>
<option value="General">General</option>
</select>
</div> </div>
<div> <div>