Extract common errorBanner style to shared styles

- Added errorBanner to sharedStyles for consistent error display
- Removed duplicate errorBanner definitions from all pages
- Updated appointments, booking, admin/appointments, and admin/availability pages
- Reduced code duplication while maintaining component-specific styles
This commit is contained in:
counterweight 2025-12-21 18:01:30 +01:00
parent 3d83472b97
commit b9f605d7b3
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 40 additions and 43 deletions

View file

@ -431,16 +431,6 @@ const pageStyles: Record<string, React.CSSProperties> = {
borderRadius: "8px",
cursor: "pointer",
},
errorBanner: {
fontFamily: "'DM Sans', system-ui, sans-serif",
fontSize: "0.9rem",
padding: "1rem",
background: "rgba(239, 68, 68, 0.15)",
border: "1px solid rgba(239, 68, 68, 0.3)",
borderRadius: "8px",
color: "#f87171",
marginBottom: "1rem",
},
calendar: {
display: "grid",
gridTemplateColumns: "repeat(auto-fill, minmax(180px, 1fr))",