Skip to content

Commit

Permalink
merge-with-main2
Browse files Browse the repository at this point in the history
  • Loading branch information
nina992 committed Aug 31, 2023
1 parent b35147c commit ad5fa8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions web/src/beta/components/fields/PropertyFields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import TextInput from "@reearth/beta/components/fields/TextInput";
import { type Item } from "@reearth/services/api/propertyApi/utils";

import ColorField from "../ColorField";
import SpacingInput, { SpacingValues } from "../SpacingInput";
import ToggleField from "../ToggleField";

import useHooks from "./hooks";
Expand Down Expand Up @@ -42,6 +43,16 @@ const PropertyFields: React.FC<Props> = ({ propertyId, item }) => {
onChange={handlePropertyValueUpdate(item.schemaGroup, propertyId, sf.id, sf.type)}
/>
)
) : sf.type === "spacing" ? (
<SpacingInput
key={sf.id}
name={sf.name}
value={(value as SpacingValues) ?? ""}
description={sf.description}
min={sf.min}
max={sf.max}
onChange={handlePropertyValueUpdate(item.schemaGroup, propertyId, sf.id, sf.type)}
/>
) : sf.type == "bool" ? (
<ToggleField
key={sf.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const SettingsHeading = styled.div`
`;

const SettingsContent = styled.div`
height: 100px;
min-height: 134px;
width: 200px;
padding: 8px;
box-sizing: border-box;
Expand Down

0 comments on commit ad5fa8b

Please sign in to comment.