PrivacySetting comments

This commit is contained in:
sageTheDM 2024-10-11 09:31:42 +02:00
parent bc6b7f8481
commit da480b9835

View file

@ -14,28 +14,28 @@ const PrivacySettings: React.FC<PrivacySettingsProps> = ({ selectedOption, handl
<div className="settings-option"> <div className="settings-option">
<p>Disable Options:</p> <p>Disable Options:</p>
<div className="slider"> <div className="slider">
{/* Offline */} {/* Offline Option */}
<div <div
className={`slider-option ${selectedOption === 'Offline' ? 'active' : ''}`} className={`slider-option ${selectedOption === 'Offline' ? 'active' : ''}`} // Active class based on selection
onClick={() => handleRadioChange('Offline')} // Allow selection only if not in open-source mode onClick={() => handleRadioChange('Offline')} // Handle selection change
> >
Offline tools{openSourceMode ? ' (FOSS)' : ''} Offline tools{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}
</div> </div>
{/* Online */} {/* Online Option */}
<div <div
className={`slider-option ${selectedOption === 'Online' ? 'active' : ''}`} className={`slider-option ${selectedOption === 'Online' ? 'active' : ''}`} // Active class based on selection
onClick={() => handleRadioChange('Online')} onClick={() => handleRadioChange('Online')} // Handle selection change
> >
Online tools{openSourceMode ? ' (FOSS)' : ''} Online tools{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}
</div> </div>
{/* None */} {/* None Option */}
<div <div
className={`slider-option ${selectedOption === 'None' ? 'active' : ''}`} className={`slider-option ${selectedOption === 'None' ? 'active' : ''}`} // Active class based on selection
onClick={() => handleRadioChange('None')} onClick={() => handleRadioChange('None')} // Handle selection change
> >
None{openSourceMode ? ' (FOSS)' : ''} None{openSourceMode ? ' (FOSS)' : ''} {/* Display FOSS label if applicable */}
</div> </div>
</div> </div>
<br /> <br />