refactor: use css var

feat/parent-child-retrieval-api
AkaraChen 2 years ago
parent c4aa98e609
commit b528b1e875

@ -30,7 +30,7 @@ export const StepperStep: FC<StepperStepProps> = (props) => {
? 'text-white' ? 'text-white'
: !isDisabled : !isDisabled
? 'text-text-tertiary' ? 'text-text-tertiary'
: 'text-text-tertiary/30', : 'text-text-tertiary opacity-30',
)}> )}>
{label} {label}
</div> </div>
@ -41,7 +41,7 @@ export const StepperStep: FC<StepperStepProps> = (props) => {
? 'text-text-accent' ? 'text-text-accent'
: !isDisabled : !isDisabled
? 'text-text-tertiary' ? 'text-text-tertiary'
: 'text-text-tertiary/30', : 'text-text-tertiary opacity-30',
)}>{name}</div> )}>{name}</div>
</div> </div>
} }

@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'
import { Stepper, type StepperProps } from '../stepper' import { Stepper, type StepperProps } from '../stepper'
import classNames from '@/utils/classnames' import classNames from '@/utils/classnames'
export type TopbarProps = Pick<StepperProps, 'activeStepIndex'> & { export type TopbarProps = Pick<StepperProps, 'activeIndex'> & {
className?: string className?: string
} }
@ -21,7 +21,7 @@ export const Topbar: FC<TopbarProps> = (props) => {
return <div className={classNames('flex items-center justify-between relative', className)}> return <div className={classNames('flex items-center justify-between relative', className)}>
<Link href={'/datasets'} className="h-12 pl-2 pr-6 py-2 justify-start items-center gap-1 inline-flex"> <Link href={'/datasets'} className="h-12 pl-2 pr-6 py-2 justify-start items-center gap-1 inline-flex">
<RiArrowLeftLine className='size-4 mr-2' /> <RiArrowLeftLine className='size-4 mr-2' />
<p className="text-[#101827] text-[13px] font-semibold uppercase leading-none"> <p className="text-text-primary text-[13px] font-semibold uppercase leading-none">
{t('datasetCreation.steps.header.creation')} {t('datasetCreation.steps.header.creation')}
</p> </p>
</Link> </Link>

@ -18,7 +18,7 @@ const ErrorMessage: FC<Props> = ({
return ( return (
<div className={cn(className, 'py-2 px-4 border-t border-gray-200 bg-[#FFFAEB]')}> <div className={cn(className, 'py-2 px-4 border-t border-gray-200 bg-[#FFFAEB]')}>
<div className='flex items-center h-5'> <div className='flex items-center h-5'>
<AlertTriangle className='mr-2 w-4 h-4 text-[#F79009]' /> <AlertTriangle className='mr-2 w-4 h-4 text-text-warning-secondary' />
<div className='text-sm font-medium text-[#DC6803]'>{title}</div> <div className='text-sm font-medium text-[#DC6803]'>{title}</div>
</div> </div>
{errorMsg && ( {errorMsg && (

Loading…
Cancel
Save