Skip to content

Commit

Permalink
Remove log message. Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Feb 21, 2024
1 parent 94358a2 commit 56a9ea7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const ModalContent: FC = () => {
const {
modalState: { type, currentZoom, errorMessage, nodeId },
} = useAppContext();
const helpTranslationText = `${t("navbar.help_translating")}`;

switch (type) {
case ModalType.NodeAddedSuccessfully: {
Expand Down Expand Up @@ -81,7 +80,7 @@ const ModalContent: FC = () => {
href="https://github.com/openstreetmap-polska/openaedmap-frontend#translating"
>
<Icon path={mdiTranslate} size={1.2} className="icon mr-2" />
{helpTranslationText}
{t("navbar.help_translating")}
</Button>
<Button
mr={2}
Expand Down
10 changes: 0 additions & 10 deletions src/components/sidebar-left.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import DefibrillatorEditor from "./sidebar/defibrillatorEditor";
import PhotoReport from "./sidebar/photoReporter";
import PhotoUpload from "./sidebar/photoUploader";

const DEBUG = false;

const SidebarLeft: FC<SidebarLeftProps> = (props) => {
const {
action,
Expand All @@ -21,14 +19,6 @@ const SidebarLeft: FC<SidebarLeftProps> = (props) => {
setOpenChangesetId,
} = props;

DEBUG &&
console.log(
"Opening left sidebar with action: ",
action,
" and data:",
data,
);

if (!visible) return null;

switch (action) {
Expand Down

0 comments on commit 56a9ea7

Please sign in to comment.