Skip to content

Commit

Permalink
fix(Admin): consistent component names
Browse files Browse the repository at this point in the history
  • Loading branch information
seangwright committed Apr 24, 2024
1 parent d097841 commit e12e9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
import React, { ChangeEvent, useState } from "react";
import { AddressDataType, newAddress } from "./AddressDataType";

interface AddressListFormComponentProps extends FormComponentProps {
interface AddressDataTypeListFormComponentProps extends FormComponentProps {
newAddress: AddressDataType;
value: AddressDataType[];
}

export const AddressListFormComponent = (
props: AddressListFormComponentProps
props: AddressDataTypeListFormComponentProps
) => {
const [addresses, setAddresses] = useState(
props.value ?? [{ ...props.newAddress }]
Expand Down
2 changes: 1 addition & 1 deletion src/DancingGoat.Admin/DataTypes/AddressDataType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class AddressListFormComponent : FormComponent<
{
public const string IDENTIFIER = "DancingGoat.FormComponent.AddressListDataType";

public override string ClientComponentName => "@acme/web-admin/AddressList";
public override string ClientComponentName => "@acme/web-admin/AddressDataTypeList";
}

public class AddressListFormComponentProperties : FormComponentProperties { }
Expand Down

0 comments on commit e12e9af

Please sign in to comment.