Skip to content

Commit

Permalink
fix: common component UI
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalRakholiya-iView committed Feb 22, 2024
1 parent 3038204 commit 83b483c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/components/inputs/AvailableNamesInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@/utils/style/colors";
import { NameFinderFormType } from "@/utils/types/tns";

export interface TextInputCustomProps<T extends FieldValues>
interface TextInputCustomProps<T extends FieldValues>
extends Omit<TextInputProps, "accessibilityRole" | "defaultValue"> {
name: Path<T>;
nameValue: string;
Expand All @@ -26,7 +26,6 @@ export interface TextInputCustomProps<T extends FieldValues>
value?: string;
onChangeText?: (value: string) => void;
onPressEnter?: () => void;
usdPrice?: number | undefined;
control?: Control<T>;
style?: ViewStyle;
}
Expand All @@ -39,7 +38,6 @@ export const AvailableNamesInput = <T extends FieldValues>({
value,
onChangeText = () => {},
onPressEnter = () => {},
usdPrice,
control,
style,
}: TextInputCustomProps<T>) => {
Expand All @@ -50,6 +48,8 @@ export const AvailableNamesInput = <T extends FieldValues>({
nameAvailability.availability === "mint"
? nameAvailability.prettyPrice
: "";
const usdPrice =
nameAvailability.availability === "mint" ? nameAvailability?.usdPrice : 0;

let availabilityInfo = <></>;
if (nameValue && selectedNetwork?.kind === NetworkKind.Cosmos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ export const CreateDAOSection: React.FC<CreateDAOSectionProps> = ({
: "your-organization"
}
value={name}
usdPrice={
nameAvailability.availability === "mint"
? nameAvailability?.usdPrice
: 0
}
/>
</View>
</View>
Expand Down

0 comments on commit 83b483c

Please sign in to comment.