Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(UI): use StyledButton in TierSelectionModal for consistency (#543)
Jake Turnerc67653b87ab4
diff --git a/admin/inertia/components/TierSelectionModal.tsx b/admin/inertia/components/TierSelectionModal.tsxindex ed44eeec..0a67169e 100644--- a/admin/inertia/components/TierSelectionModal.tsx+++ b/admin/inertia/components/TierSelectionModal.tsx@@ -6,6 +6,7 @@ import { resolveTierResources } from '~/lib/collections'import { formatBytes } from '~/lib/util'import classNames from 'classnames'import DynamicIcon, { DynamicIconName } from './DynamicIcon'+import StyledButton from './StyledButton'interface TierSelectionModalProps {isOpen: boolean@@ -213,18 +214,14 @@ const TierSelectionModal: React.FC<TierSelectionModalProps> = ({{/* Footer */}<div className="bg-surface-secondary px-6 py-4 flex justify-end gap-3">- <button+ <StyledButton+ variant='primary'+ size='lg'onClick={handleSubmit}disabled={!localSelectedSlug}- className={classNames(- 'px-4 py-2 rounded-md font-medium transition-colors',- localSelectedSlug- ? 'bg-desert-green text-white hover:bg-desert-green/90'- : 'bg-border-default text-text-muted cursor-not-allowed'- )}>Submit- </button>+ </StyledButton></div></Dialog.Panel></Transition.Child>