- nuke visible from the face of the earth with fire.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 17:25:25 -05:00
parent 7d6e61043e
commit ba32a71786
58 changed files with 227 additions and 229 deletions

View File

@@ -7,11 +7,11 @@ import { UPDATE_ASSOCIATION } from "../../graphql/user.queries";
export default function ShopUsersAuthEdit({ association }) {
const { t } = useTranslation();
const [updateAssociation] = useMutation(UPDATE_ASSOCIATION);
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const [value, setValue] = useState(association.authlevel);
const handleSave = async () => {
setVisible(false);
setOpen(false);
const result = await updateAssociation({
variables: {
assocId: association.id,
@@ -30,7 +30,7 @@ export default function ShopUsersAuthEdit({ association }) {
return (
<div>
{visible && (
{open && (
<div>
<InputNumber
min={0}
@@ -41,10 +41,8 @@ export default function ShopUsersAuthEdit({ association }) {
/>
</div>
)}
{!visible && (
<div
style={{ cursor: "pointer" }} //onClick={() => setVisible(true)}
>
{!open && (
<div style={{ cursor: "pointer" }}>
{association.authlevel || t("general.labels.na")}
</div>
)}