|
{this.state.editing ? (
) : (
{this.props.value}
)}
|
Edit
|
);
}
}
interface LockedRowProps {
label: string;
value?: string;
lockMessage?: string;
}
export const LockedRow = ({ label, value, lockMessage }: LockedRowProps) => {
const lockMessageClass = css`
font-style: italic;
margin-right: 0.6rem;
`;
const labelClass = cx(
'width-16',
css`
font-weight: 500;
`
);
return (