10 Commits

Author SHA1 Message Date
3be5cba323 Refactor product data types and update components
Replaced `ProductItemProps` with a new `Product` type in `product-service.ts`, which includes properties like `id`, `name`, `price`, `status`, and `coverUrl`. Updated the `getProducts` function to return `Promise<Product[]>` instead of `Promise<ProductItemProps[]>`. Modified the `ProductItem` component in `product-item.tsx` to accept the new `Product` type. Adjusted `products-view.tsx` to import `Product` and manage the state as `Array<Product>`.
2025-07-02 15:59:34 +02:00
b7c5734a1b Refactor ProductItemProps type definition
Moved `ProductItemProps` from `product-item.tsx` to `product-service.ts` for centralized access. Updated `product-item.tsx` to import the type from the new location. Adjusted imports in `products-view.tsx` to streamline dependencies and reduce redundancy. This improves code organization and maintains a single source of truth for the `ProductItemProps` type.
2025-07-02 15:45:44 +02:00
a155c991c6 Add product fetching functionality to ProductsView
Updated `products-view.tsx` to use `useEffect` for fetching products from an API and manage them with a new state variable. Modified rendering logic to display fetched products instead of a mocked list.

Created/modified `product-service.ts` to include the `getProducts` function, simulating an API call that returns an array of product objects.
2025-07-02 15:38:27 +02:00
b6ffdaf03f Update image source for digital data icon
Modified the `src` attribute of an `<img>` element in `app.tsx` to replace the previous image with a new icon located at "/assets/images/dd-button-icon.webp". This change enhances the visual representation of the application by using a more relevant image.
2025-07-02 11:45:44 +02:00
325b27262e Add floating action button to App component
Updated the `App` component in `app.tsx` to include a new floating action button (Fab) linking to Digital Data. The button now features a transparent background and no box shadow, along with an image for improved visual representation. The `useScrollToTop` function remains unchanged but has a more streamlined implementation.
2025-07-02 11:16:26 +02:00
8771e025bc Standardproduktbild hinzugefügt und mit useState konfiguriert. 2025-07-02 11:05:16 +02:00
6bb1758040 MUI-React-Vorlage hinzufügen 2025-07-01 19:05:55 +02:00
a69339427a Add Material-UI and Emotion dependencies to the project 2025-06-30 13:01:56 +02:00
e0915269f7 feat: initialize dd-hub-react project with Vite and React 2025-06-30 11:54:39 +02:00
fb114384e0 Initial commit 2025-06-30 10:47:25 +02:00