feat(frontend): removed `referred` prop from `Records` component

pull/85/head
Samuel Rowe 3 years ago
parent aee2e07d84
commit fafe71caaa

@ -50,7 +50,6 @@ const IPam = () => {
<Records <Records
name="configurations" name="configurations"
title="Configurations" title="Configurations"
referred="configuration"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `configurations[${index}].subnet`, name: `configurations[${index}].subnet`,
@ -131,7 +130,6 @@ const IPam = () => {
<Records <Records
name="options" name="options"
title="Options" title="Options"
referred="option"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `options[${index}].key`, name: `options[${index}].key`,

@ -14,7 +14,6 @@ const Labels: FunctionComponent = (): ReactElement => {
<Records <Records
name="labels" name="labels"
title="" title=""
referred="label"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `labels[${index}].key`, name: `labels[${index}].key`,

@ -24,7 +24,6 @@ const Build = () => {
<Records <Records
name="build.arguments" name="build.arguments"
title="Arguments" title="Arguments"
referred="argument"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.arguments[${index}].key`, name: `build.arguments[${index}].key`,
@ -47,7 +46,6 @@ const Build = () => {
<Records <Records
name="build.labels" name="build.labels"
title="Labels" title="Labels"
referred="label"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.labels[${index}].key`, name: `build.labels[${index}].key`,
@ -67,7 +65,6 @@ const Build = () => {
<Records <Records
name="build.sshAuthentications" name="build.sshAuthentications"
title="SSH authentications" title="SSH authentications"
referred="SSH authentication"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.sshAuthentications[${index}].id`, name: `build.sshAuthentications[${index}].id`,
@ -90,7 +87,6 @@ const Build = () => {
<Records <Records
name="build.cacheFrom" name="build.cacheFrom"
title="Cache from" title="Cache from"
referred="item"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.cacheFrom[${index}]`, name: `build.cacheFrom[${index}]`,
@ -105,7 +101,6 @@ const Build = () => {
<Records <Records
name="build.cacheTo" name="build.cacheTo"
title="Cache to" title="Cache to"
referred="item"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.cacheTo[${index}]`, name: `build.cacheTo[${index}]`,
@ -120,7 +115,6 @@ const Build = () => {
<Records <Records
name="build.extraHosts" name="build.extraHosts"
title="Extra hosts" title="Extra hosts"
referred="extra host"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `build.extraHosts[${index}].hostName`, name: `build.extraHosts[${index}].hostName`,

@ -31,7 +31,6 @@ const General = () => {
<Records <Records
name="ports" name="ports"
title="Ports" title="Ports"
referred="port"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `ports[${index}].hostPort`, name: `ports[${index}].hostPort`,
@ -70,7 +69,6 @@ const General = () => {
<Records <Records
name="profiles" name="profiles"
title="Profiles" title="Profiles"
referred="profile"
fields={(index: number) => [ fields={(index: number) => [
{ {
name: `profiles[${index}]`, name: `profiles[${index}]`,

@ -18,7 +18,6 @@ import IconButton from "@mui/joy/IconButton";
export interface IRecordsProps { export interface IRecordsProps {
title: string; title: string;
referred: string;
name: string; name: string;
fields: (index: number) => IFieldType[]; fields: (index: number) => IFieldType[];
newValue: any; newValue: any;
@ -95,7 +94,6 @@ const Records: FunctionComponent<IRecordsProps> = (
): ReactElement => { ): ReactElement => {
const { const {
title, title,
referred,
name, name,
fields, fields,
newValue, newValue,

Loading…
Cancel
Save