Skip to content

Commit

Permalink
[GEN-1779]: fix UI texts (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink authored Nov 26, 2024
1 parent 2eae7e9 commit 9bb0916
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export const ActionFormBody: React.FC<Props> = ({ isUpdate, action, formData, ha

{!isUpdate && <SectionTitle title='' description={action.docsDescription as string} actionButton={<DocsButton endpoint={action.docsEndpoint} />} />}

<MonitoringCheckboxes allowedSignals={action.allowedSignals} selectedSignals={formData.signals} setSelectedSignals={(value) => handleFormChange('signals', value)} />
<MonitoringCheckboxes
title='Signals for Processing'
allowedSignals={action.allowedSignals}
selectedSignals={formData.signals}
setSelectedSignals={(value) => handleFormChange('signals', value)}
/>

{!isUpdate && <Input title='Action name' placeholder='Use a name that describes the action' value={formData.name} onChange={({ target: { value } }) => handleFormChange('name', value)} />}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useMemo, useState } from 'react';
import Image from 'next/image';
import { slide } from '@/styles';
import theme from '@/styles/theme';
import { useAppStore } from '@/store';
import styled from 'styled-components';
import { DeleteWarning } from '@/components';
Expand Down Expand Up @@ -69,11 +68,20 @@ const MultiSourceControl = () => {
</Button>

<Button variant='tertiary' onClick={() => setIsWarnModalOpen(true)}>
<Image src='/icons/common/circled-cross.svg' alt='' width={20} height={20} />
<Text family='secondary' decoration='underline'>
Uninstrument
</Text>
</Button>

{/* exists in FIGMA, but has same functionality - exclude until we change instrumented behaviour */}

{/* <Button variant='tertiary' onClick={() => setIsWarnModalOpen(true)}>
<Image src='/icons/common/trash.svg' alt='' width={16} height={16} />
<Text family='secondary' decoration='underline' color={theme.text.error}>
Delete
Remove
</Text>
</Button>
</Button> */}
</Transition>

<DeleteWarning
Expand Down

0 comments on commit 9bb0916

Please sign in to comment.