Skip to content

Commit

Permalink
fix: clearer dao name input
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Aug 9, 2023
1 parent d8cfb90 commit 1487506
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions packages/screens/Organizations/components/CreateDAOSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { BrandText } from "../../../components/BrandText";
import { PrimaryButton } from "../../../components/buttons/PrimaryButton";
import { TextInputCustom } from "../../../components/inputs/TextInputCustom";
import { SpacerColumn, SpacerRow } from "../../../components/spacer";
import { useSelectedNetworkInfo } from "../../../hooks/useSelectedNetwork";
import { NetworkKind } from "../../../networks";
import { neutral33, neutral77 } from "../../../utils/style/colors";
import { fontSemibold20, fontSemibold28 } from "../../../utils/style/fonts";
import { layout } from "../../../utils/style/layout";
Expand Down Expand Up @@ -36,8 +38,10 @@ export const CreateDAOSection: React.FC<CreateDAOSectionProps> = ({
mode: "all",
});

const selectedNetwork = useSelectedNetworkInfo();
const selectedRadioStructure = watch("structure");
const uri = watch("imageUrl");
const name = watch("associatedTeritoriNameService");

// functions
const onErrorImageLoading = () =>
Expand Down Expand Up @@ -78,8 +82,20 @@ export const CreateDAOSection: React.FC<CreateDAOSectionProps> = ({
noBrokenCorners
variant="labelOutside"
control={control}
label="Associated Teritori Name Service"
placeHolder="your-organization.tori"
label={`Associated Handle${
name
? `: ${name}${
selectedNetwork?.kind === NetworkKind.Gno
? ""
: ".tori"
}`
: ""
}`}
placeHolder={
selectedNetwork?.kind === NetworkKind.Gno
? "your_organization"
: "your-organization"
}
name="associatedTeritoriNameService"
rules={{ required: true }}
/>
Expand Down

0 comments on commit 1487506

Please sign in to comment.