Skip to content

Commit

Permalink
fix: rename zip codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Soarecos committed Aug 8, 2022
1 parent 22b25c9 commit 2cb4a95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Agency/AgencieEditAllgemeines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function AgencieEditAllgemeines() {
const [readOnlyTopicIds, setReadOnlyTopicIds] = useState<boolean>(true);
const [readOnlyOnline, setReadOnlyOnline] = useState<boolean>(true);
const [readOnlyTeamAgency, setReadOnlyTeamAgency] = useState<boolean>(true);
const [readOnlyZipCodeScope, setReadOnlyZipCodeScope] =
const [readOnlyPostCodeRanges, setReadOnlyPostCodeRanges] =
useState<boolean>(true);
const [readOnlyPostCode, setReadOnlyPostCode] = useState<boolean>(true);
const [readOnlyCity, setReadOnlyCity] = useState<boolean>(true);
Expand Down Expand Up @@ -104,7 +104,7 @@ export default function AgencieEditAllgemeines() {
};

const resetAddress = () => {
setReadOnlyZipCodeScope(true);
setReadOnlyPostCodeRanges(true);
setReadOnlyPostCode(true);
setReadOnlyCity(true);
};
Expand Down Expand Up @@ -158,7 +158,7 @@ export default function AgencieEditAllgemeines() {
};

const handleAddress = () => {
setReadOnlyZipCodeScope(false);
setReadOnlyPostCodeRanges(false);
setReadOnlyPostCode(false);
setReadOnlyCity(false);
};
Expand Down Expand Up @@ -363,7 +363,7 @@ export default function AgencieEditAllgemeines() {
<Switch
size="default"
checked={postCodeRangesSwitchActive}
disabled={readOnlyZipCodeScope}
disabled={readOnlyPostCodeRanges}
onChange={() => {
const switchValue = !postCodeRangesSwitchActive;
setPostCodeRangesSwitchActive(switchValue);
Expand All @@ -386,11 +386,11 @@ export default function AgencieEditAllgemeines() {
<PostCodeRanges
agencyPostCodeRanges={agencyPostCodeRanges}
formInputData={formAgencyEdit}
disabled={readOnlyZipCodeScope}
disabled={readOnlyPostCodeRanges}
/>
)}
</div>
{!readOnlyZipCodeScope && !readOnlyPostCode && !readOnlyCity && (
{!readOnlyPostCodeRanges && !readOnlyPostCode && !readOnlyCity && (
<div className="agencyEdit__editableButtons">
<Button
item={cancelAddressEditButton}
Expand Down

0 comments on commit 2cb4a95

Please sign in to comment.