diff --git a/ipi-survey-platform/src/assets/images/CaretDown.svg b/ipi-survey-platform/src/assets/images/CaretDown.svg index 7163c83..58ed51c 100644 --- a/ipi-survey-platform/src/assets/images/CaretDown.svg +++ b/ipi-survey-platform/src/assets/images/CaretDown.svg @@ -1,3 +1,3 @@ diff --git a/ipi-survey-platform/src/components/common/FormControls.jsx b/ipi-survey-platform/src/components/common/FormControls.jsx index 20f8b22..c6786f0 100644 --- a/ipi-survey-platform/src/components/common/FormControls.jsx +++ b/ipi-survey-platform/src/components/common/FormControls.jsx @@ -436,7 +436,7 @@ export const DateField = ({ wrapperStyle.width = typeof width === 'number' ? `${width}px` : width; } const inputStyle = { - ...baseInputStyle, + ...(baseInputStyles?.default || {}), ...style, color: value ? '#232528' : '#232528', borderColor: focused ? '#92722A' : '#CBA344', diff --git a/ipi-survey-platform/src/components/common/Loader.jsx b/ipi-survey-platform/src/components/common/Loader.jsx index 8d1c8b6..61b7ac5 100644 --- a/ipi-survey-platform/src/components/common/Loader.jsx +++ b/ipi-survey-platform/src/components/common/Loader.jsx @@ -1 +1,22 @@ +import React from 'react'; + +const sizeClassMap = { + sm: 'h-4 w-4 border-2', + md: 'h-6 w-6 border-2', + lg: 'h-10 w-10 border-4', +}; + +const Loader = ({ size = 'md', label = '', className = '' }) => { + const sizeClass = sizeClassMap[size] || sizeClassMap.md; + return ( +