Files
smoothschedule/frontend/src/components/ServiceList.jsx
poduck 2e111364a2 Initial commit: SmoothSchedule multi-tenant scheduling platform
This commit includes:
- Django backend with multi-tenancy (django-tenants)
- React + TypeScript frontend with Vite
- Platform administration API with role-based access control
- Authentication system with token-based auth
- Quick login dev tools for testing different user roles
- CORS and CSRF configuration for local development
- Docker development environment setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 01:43:20 -05:00

40 lines
1.4 KiB
JavaScript

import React from 'react';
import './ServiceList.css';
const ServiceList = ({ services, onSelectService, loading }) => {
if (loading) {
return <div className="service-list-loading">Loading services...</div>;
}
if (!services || services.length === 0) {
return <div className="service-list-empty">No services available</div>;
}
return (
<div className="service-list">
<h2>Available Services</h2>
<div className="service-grid">
{services.map((service) => (
<div
key={service.id}
className="service-card"
onClick={() => onSelectService(service)}
>
<h3>{service.name}</h3>
<div className="service-details">
<span className="service-duration">{service.duration} min</span>
<span className="service-price">${service.price}</span>
</div>
{service.description && (
<p className="service-description">{service.description}</p>
)}
<button className="service-book-btn">Book Now</button>
</div>
))}
</div>
</div>
);
};
export default ServiceList;