Commit a9cda027 by Manivasagam S

code changes

parent eb28cd73
import React from 'react'
import styles from "./Input.module.css" import styles from "./Input.module.css"
import { ErrorFormatter } from 'storybook/internal/components'
export const Input =({type='text',placeholder='',isInvalid=false,onChange,value='',errorMessage="",...props}) => { export const Input =({type='text',placeholder='',isInvalid=false,onChange,value='',errorMessage="",...props}) => {
return ( return (
<div > <div >
......
import { background } from "storybook/internal/theming";
import { Input } from "./Input"; import { Input } from "./Input";
export default { export default {
......
import { Modal } from "./Modal"; import { Modal } from "./Modal";
import { SeatSelectForm } from "../../Form/SeatSelectForm/SeatSelectForm"; import { SeatSelectForm } from "../../Form/SeatSelectForm/SeatSelectForm";
// import { action } from 'storybook/actions';
export default { export default {
title: "Base/Modal", title: "Base/Modal",
component: Modal, component: Modal,
......
import React from 'react'; import React from 'react';
import { Select } from './Select'; import { Select } from './Select';
import { action } from '@storybook/addon-actions';
export default { export default {
title: 'Base/Select', title: 'Base/Select',
......
import React from "react";
import { Screen } from "./Screen"; import { Screen } from "./Screen";
export default { export default {
......
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import styles from "../Notification/Notification.module.css"; import styles from "../Notification/Notification.module.css";
import { Button } from "../../Base/Buttons/Button";
import successImg from "../../../assets/success.png"; import successImg from "../../../assets/success.png";
import errorImg from "../../../assets/giferror.gif"; import errorImg from "../../../assets/giferror.gif";
import cn from "classnames"; import cn from "classnames";
import { AiOutlineLogout } from "react-icons/ai";
export const Notification = ({ title, type, msg, button, }) => { export const Notification = ({ title, type, msg, button, }) => {
const selectedImage = type === "success" ? successImg : errorImg; const selectedImage = type === "success" ? successImg : errorImg;
// const onLogout=()=>{
// window.location.replace("/");
// }
return ( return (
<> <>
{/* <div className={styles.logoutButton}> {/* <div className={styles.logoutButton}>
......
import React from 'react';
import { Seat } from './Seat'; import { Seat } from './Seat';
export default { export default {
......
import React from 'react';
import { SeatLayout } from './SeatLayout'; import { SeatLayout } from './SeatLayout';
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment