Skip to content

Commit

Permalink
fix(web): mvt and wms add button (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumbobeaty authored Jul 26, 2024
1 parent 6d46894 commit c6c256e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const WmsTiles: FC<DataProps> = ({ sceneId, onSubmit, onClose }) => {
title={t("Add to Layer")}
appearance="primary"
onClick={handleSubmit}
disabled={!mvtUrlValue || !layerName}
disabled={!mvtUrlValue || !layerNameList.length}
/>
</SubmitWrapper>
</Wrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const WmsTiles: FC<DataProps> = ({ sceneId, onSubmit, onClose }) => {
title={t("Add to Layer")}
appearance="primary"
onClick={handleSubmit}
disabled={!wmsUrlValue || !layerNameValue}
disabled={!wmsUrlValue || !layersNameList.length}
/>
</SubmitWrapper>
</Wrapper>
Expand Down
4 changes: 2 additions & 2 deletions web/src/beta/lib/reearth-ui/components/Icon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo } from "react";
import { FC, useMemo } from "react";

import { styled, useTheme } from "@reearth/services/theme";

Expand All @@ -13,7 +13,7 @@ export type IconProps = {
className?: string;
};

export const Icon: React.FC<IconProps> = ({ icon, size = "normal", color, className }) => {
export const Icon: FC<IconProps> = ({ icon, size = "normal", color, className }) => {
const theme = useTheme();
const SvgIcon = useMemo(() => {
const SvgComponent = Icons[icon as IconName];
Expand Down

0 comments on commit c6c256e

Please sign in to comment.