update calculator,

This commit is contained in:
louiscklaw
2025-06-06 15:00:30 +08:00
parent 731cb7500e
commit 8200e0d902
11 changed files with 349 additions and 129 deletions

View File

@@ -0,0 +1,17 @@
import { IonCol } from '@ionic/react';
import styles from './Button.module.scss';
const Button = (props): React.JSX.Element => {
const { value, special, clickEvent } = props;
return (
<IonCol
className={`${special ? styles.specialButton : styles.button} animate__animated animate__faster`}
onClick={(e) => clickEvent(e, value)}
>
{value === '/' ? <>&divide;</> : value === '*' ? <>&times;</> : value}
</IonCol>
);
};
export default Button;