Explorar el Código

RequireChip パラメータの与え方を修正

develop
sosuke.iwabuchi hace 2 años
padre
commit
4b9c8a51b5
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. +5
    -5
      src/components/chip/RequireChip.tsx

+ 5
- 5
src/components/chip/RequireChip.tsx Ver fichero

@@ -1,10 +1,10 @@
import { Chip, ChipProps } from "@mui/material";

export type RequireChipProps = { show?: boolean } & ChipProps;
export default function RequireChip(props: RequireChipProps) {
const { show } = props;
if (show === false) {
export type RequireChipProps = { require?: boolean } & ChipProps;
export default function RequireChip({ require, ...others }: RequireChipProps) {
if (require === false) {
return null;
}
return <Chip size="small" label="必須" color="error" {...props} />;
return <Chip size="small" label="必須" color="error" {...others} />;
}

Cargando…
Cancelar
Guardar