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

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

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

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

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

Loading…
Cancel
Save