Skip to content

Commit

Permalink
added SettingBtn.tsx and SettingBtn.module.css
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyansuMaurya committed Aug 19, 2022
1 parent 49554a7 commit 22b0b0b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions labourService/src/components/SettingBtn.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.ion_btn_size {
font-size: 19px;
size: 20px;
margin-top: 5px;
height:70px;
color: black;
}

*{
text-decoration: none;

}

28 changes: 28 additions & 0 deletions labourService/src/components/SettingBtn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { IonButton, IonGrid, IonIcon, IonRow } from "@ionic/react";
import React from "react";
import { Link } from "react-router-dom";
import classes from './SettingBtn.module.css'




function SettingBtn(props: {
to: string; text: string; icon: string | undefined; onClick?: any
}) {
return (
<div>
<Link to={props.to}>
<IonButton fill="clear" color="danger" onClick={()=>props.onClick()} className={classes.ion_btn_size} expand="full">
<IonIcon slot="start" icon={props.icon} />
<IonGrid>
<IonRow>{props.text}</IonRow>
</IonGrid>
</IonButton>
</Link>
</div>
);
}

export default SettingBtn;


0 comments on commit 22b0b0b

Please sign in to comment.