• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / e-commerce-mavericks-fn / 9591892828

20 Jun 2024 05:04AM UTC coverage: 0.0%. Remained the same
9591892828

push

github

web-flow
Merge pull request #18 from atlp-rwanda/187354197-google-authentication

[finishes #187354197] google authentication and redireciton

0 of 40 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 514 new or added lines in 21 files covered. (0.0%)

0 of 1548 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/components/common/Input.tsx
1
import { forwardRef } from 'react';
×
NEW
2
import { cn } from '../../utils';
×
3

×
4
interface InputProps {
×
5
  type: string;
×
6
  label: string;
×
7
  id: string;
×
8
  placeholder: string;
×
9
  error?: string;
×
10
  labelClassName?: string;
×
11
  inputClasname?: string;
×
12
}
×
13

×
14
// Use React.forwardRef to forward the ref to the input element
×
15
const Input = forwardRef<HTMLInputElement, InputProps>(
×
16
  ({ type, labelClassName, inputClasname, label, id, placeholder, error = '', ...rest }, ref) => {
×
17
    return (
×
18
      <label className={cn('flex flex-col gap-1 font-lg font-medium flex-1 w', labelClassName)}>
×
19
        {label}
×
20
        <input
×
21
          type={type}
×
22
          id={id}
×
23
          placeholder={placeholder}
×
24
          className={cn('p-1 px-3 rounded-lg border border-blackColor outline-none font-normal', inputClasname)}
×
25
          ref={ref}
×
26
          {...rest}
×
27
        />
×
28
        {error && <p className='text-redColor text-xs'>{error}</p>}
×
29
      </label>
×
30
    );
×
31
  }
×
32
);
×
33

×
34
export default Input;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc