feat: The Other Dude v9.0.1 — full-featured email system
ci: add GitHub Pages deployment workflow for docs site Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
35
frontend/src/components/simple-config/SimpleApplyBar.tsx
Normal file
35
frontend/src/components/simple-config/SimpleApplyBar.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* SimpleApplyBar -- A sticky bottom bar showing the pending change count
|
||||
* and a "Review & Apply" button for Simple mode category panels.
|
||||
*/
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
|
||||
interface SimpleApplyBarProps {
|
||||
pendingCount: number
|
||||
isApplying: boolean
|
||||
onReviewClick: () => void
|
||||
}
|
||||
|
||||
export function SimpleApplyBar({
|
||||
pendingCount,
|
||||
isApplying,
|
||||
onReviewClick,
|
||||
}: SimpleApplyBarProps) {
|
||||
if (pendingCount === 0) return null
|
||||
|
||||
return (
|
||||
<div className="flex items-center justify-between pt-4 border-t border-border">
|
||||
<span className="text-xs text-text-muted">
|
||||
{pendingCount} pending change{pendingCount !== 1 ? 's' : ''}
|
||||
</span>
|
||||
<Button
|
||||
size="sm"
|
||||
disabled={pendingCount === 0 || isApplying}
|
||||
onClick={onReviewClick}
|
||||
>
|
||||
{isApplying ? 'Applying...' : 'Review & Apply'}
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user