mirror of
				https://github.com/9technologygroup/patchmon.net.git
				synced 2025-11-04 05:53:27 +00:00 
			
		
		
		
	Add dark mode support to BulkAssignModal
This commit is contained in:
		@@ -1589,28 +1589,31 @@ const BulkAssignModal = ({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	return (
 | 
						return (
 | 
				
			||||||
		<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
 | 
							<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
 | 
				
			||||||
			<div className="bg-white rounded-lg p-6 w-full max-w-md">
 | 
								<div className="bg-white dark:bg-secondary-800 rounded-lg p-6 w-full max-w-md">
 | 
				
			||||||
				<div className="flex justify-between items-center mb-4">
 | 
									<div className="flex justify-between items-center mb-4">
 | 
				
			||||||
					<h3 className="text-lg font-semibold text-secondary-900">
 | 
										<h3 className="text-lg font-semibold text-secondary-900 dark:text-white">
 | 
				
			||||||
						Assign to Host Group
 | 
											Assign to Host Group
 | 
				
			||||||
					</h3>
 | 
										</h3>
 | 
				
			||||||
					<button
 | 
										<button
 | 
				
			||||||
						type="button"
 | 
											type="button"
 | 
				
			||||||
						onClick={onClose}
 | 
											onClick={onClose}
 | 
				
			||||||
						className="text-secondary-400 hover:text-secondary-600"
 | 
											className="text-secondary-400 hover:text-secondary-600 dark:text-secondary-300 dark:hover:text-secondary-100"
 | 
				
			||||||
					>
 | 
										>
 | 
				
			||||||
						<X className="h-5 w-5" />
 | 
											<X className="h-5 w-5" />
 | 
				
			||||||
					</button>
 | 
										</button>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<div className="mb-4">
 | 
									<div className="mb-4">
 | 
				
			||||||
					<p className="text-sm text-secondary-600 mb-2">
 | 
										<p className="text-sm text-secondary-600 dark:text-secondary-400 mb-2">
 | 
				
			||||||
						Assigning {selectedHosts.length} host
 | 
											Assigning {selectedHosts.length} host
 | 
				
			||||||
						{selectedHosts.length !== 1 ? "s" : ""}:
 | 
											{selectedHosts.length !== 1 ? "s" : ""}:
 | 
				
			||||||
					</p>
 | 
										</p>
 | 
				
			||||||
					<div className="max-h-32 overflow-y-auto bg-secondary-50 rounded-md p-3">
 | 
										<div className="max-h-32 overflow-y-auto bg-secondary-50 dark:bg-secondary-700 rounded-md p-3">
 | 
				
			||||||
						{selectedHostNames.map((friendlyName) => (
 | 
											{selectedHostNames.map((friendlyName) => (
 | 
				
			||||||
							<div key={friendlyName} className="text-sm text-secondary-700">
 | 
												<div
 | 
				
			||||||
 | 
													key={friendlyName}
 | 
				
			||||||
 | 
													className="text-sm text-secondary-700 dark:text-secondary-300"
 | 
				
			||||||
 | 
												>
 | 
				
			||||||
								• {friendlyName}
 | 
													• {friendlyName}
 | 
				
			||||||
							</div>
 | 
												</div>
 | 
				
			||||||
						))}
 | 
											))}
 | 
				
			||||||
@@ -1621,7 +1624,7 @@ const BulkAssignModal = ({
 | 
				
			|||||||
					<div>
 | 
										<div>
 | 
				
			||||||
						<label
 | 
											<label
 | 
				
			||||||
							htmlFor={bulkHostGroupId}
 | 
												htmlFor={bulkHostGroupId}
 | 
				
			||||||
							className="block text-sm font-medium text-secondary-700 mb-1"
 | 
												className="block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-1"
 | 
				
			||||||
						>
 | 
											>
 | 
				
			||||||
							Host Group
 | 
												Host Group
 | 
				
			||||||
						</label>
 | 
											</label>
 | 
				
			||||||
@@ -1629,7 +1632,7 @@ const BulkAssignModal = ({
 | 
				
			|||||||
							id={bulkHostGroupId}
 | 
												id={bulkHostGroupId}
 | 
				
			||||||
							value={selectedGroupId}
 | 
												value={selectedGroupId}
 | 
				
			||||||
							onChange={(e) => setSelectedGroupId(e.target.value)}
 | 
												onChange={(e) => setSelectedGroupId(e.target.value)}
 | 
				
			||||||
							className="w-full px-3 py-2 border border-secondary-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500"
 | 
												className="w-full px-3 py-2 border border-secondary-300 dark:border-secondary-600 rounded-md bg-white dark:bg-secondary-700 text-secondary-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-primary-500"
 | 
				
			||||||
						>
 | 
											>
 | 
				
			||||||
							<option value="">No group (ungrouped)</option>
 | 
												<option value="">No group (ungrouped)</option>
 | 
				
			||||||
							{hostGroups?.map((group) => (
 | 
												{hostGroups?.map((group) => (
 | 
				
			||||||
@@ -1638,7 +1641,7 @@ const BulkAssignModal = ({
 | 
				
			|||||||
								</option>
 | 
													</option>
 | 
				
			||||||
							))}
 | 
												))}
 | 
				
			||||||
						</select>
 | 
											</select>
 | 
				
			||||||
						<p className="mt-1 text-sm text-secondary-500">
 | 
											<p className="mt-1 text-sm text-secondary-500 dark:text-secondary-400">
 | 
				
			||||||
							Select a group to assign these hosts to, or leave ungrouped.
 | 
												Select a group to assign these hosts to, or leave ungrouped.
 | 
				
			||||||
						</p>
 | 
											</p>
 | 
				
			||||||
					</div>
 | 
										</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user