Skip to content

Commit

Permalink
fix: name of config component
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Oct 3, 2023
1 parent 5580b73 commit 947992e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/app/peers/create/configuration/configForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface ConfigProps {
setter: PeerSetter;
}

export default function PgConfig(props: ConfigProps) {
export default function ConfigForm(props: ConfigProps) {
return (
<>
{props.settings.map((setting, id) => {
Expand Down
4 changes: 2 additions & 2 deletions ui/app/peers/create/configuration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TextField } from '@/lib/TextField';
import Link from 'next/link';
import { useRouter, useSearchParams } from 'next/navigation';
import { useState } from 'react';
import PgConfig from './configForm';
import ConfigForm from './configForm';
import { handleCreate, handleValidate } from './handlers';
import { getBlankSetting } from './helpers/common';
import { postgresSetting } from './helpers/pg';
Expand All @@ -28,7 +28,7 @@ export default function CreateConfig() {
const configComponentMap = (dbType: string) => {
switch (dbType) {
case 'POSTGRES':
return <PgConfig settings={postgresSetting} setter={setConfig} />;
return <ConfigForm settings={postgresSetting} setter={setConfig} />;
default:
return <></>;
}
Expand Down

0 comments on commit 947992e

Please sign in to comment.