Skip to content

Commit

Permalink
🩹 fix : merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
saiprabhu-dandanayak committed Feb 5, 2024
2 parents 691468a + 835383a commit 406b50f
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 38 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/atoms/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, ButtonProps } from "@mui/material";
import { Button } from "@mui/material";
import { ButtonPropsInterface } from "../../../utils/interfaces";

interface ButtonPropsInterface extends ButtonProps {}

const MuiButton = ({ ...buttonProps }: ButtonPropsInterface) => <Button {...buttonProps} disableElevation disableRipple />;
const MuiButton = ({ ...buttonProps }: ButtonPropsInterface) =>
<Button {...buttonProps} disableElevation disableRipple />;

export default MuiButton;
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import React from "react";

interface IconComponentProps {
width?: string;
height?: string;
padding?: string;
src: string;
sx?:React.CSSProperties,
}
import { IconComponentProps } from "../../../utils/interfaces";

const IconComponent = (props: IconComponentProps) => {
const { src, width, height, padding } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { IMAGE_DATATESTID } from "../../../utils/constants";
import { ImageComponentProps } from "../../../utils/interfaces";

interface ImageComponentProps {
src: string;
height?: string;
width?: string;
}

const ImageComponent = ({ src, height, width }: ImageComponentProps) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@ import React, { useState } from 'react';
import { TextField, IconButton, InputAdornment } from '@mui/material';
import EyeOn from "../../../../public/assets/images/eye.svg";
import EyeOff from "../../../../public/assets/images/Vector.svg";
import IconComponent from '../icon';

export interface TextFieldProps {
placeholder?: string;
value: string;
onChange: (value: string) => void;
isPassword: boolean;
width?: string;
height?: string | number;
size?: "small" | "medium";
borderRadius?: string | number;
}
import IconComponent from '../Icon';
import { TextFieldProps } from '../../../utils/interfaces';

const CustomTextField: React.FC<TextFieldProps> = ({
placeholder,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { ReactNode } from "react";
import { Typography, TypographyProps } from "@mui/material";
import { Typography } from "@mui/material";
import { TYPOGRAPHY_DATATESTID } from "../../../utils/constants";
import { CustomTypographyProps } from "../../../utils/interfaces";

interface CustomTypographyProps extends TypographyProps {
text: ReactNode;

}
const MuiTypography = ({ variant, sx, text, ...rest }: CustomTypographyProps) => (
<Typography data-testid={TYPOGRAPHY_DATATESTID} variant={variant} sx={sx} {...rest}>
{text}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MuiTypography from "../../atoms/typography";
import IconComponent from "../../atoms/icon";
import MuiTypography from "../../atoms/Typography";
import IconComponent from "../../atoms/Icon";
import { SocialLoginProps } from "../../../utils/interfaces";
import { StylesBox } from "./styles";

Expand Down
28 changes: 28 additions & 0 deletions frontend/src/utils/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { ButtonProps, TypographyProps } from "@mui/material";
import { ReactNode } from "react";

export interface SocialLoginProps {
text: string;
src: string;
Expand All @@ -7,6 +10,27 @@ export interface TypographyWithTextFieldProps {
label: string;
color: string;
placeholder: string;
text: string;
src: string;
}
export interface ButtonPropsInterface extends ButtonProps { }

export interface IconComponentProps {
width?: string;
height?: string;
padding?: string;
src: string;
sx?:React.CSSProperties,
}

export interface ImageComponentProps {
src: string;
height?: string;
width?: string;
}

export interface TextFieldProps {
placeholder?: string;
value: string;
onChange: (value: string) => void;
isPassword: boolean;
Expand All @@ -15,4 +39,8 @@ export interface TypographyWithTextFieldProps {
size?: "small" | "medium";
borderRadius?: string | number;
variant:any
}

export interface CustomTypographyProps extends TypographyProps {
text: ReactNode;
}

0 comments on commit 406b50f

Please sign in to comment.