Skip to content

Commit 1b34e00

Browse files
committed
[transform] Review feedback: Remove Fragment, remove unused code.
1 parent 370a9f2 commit 1b34e00

File tree

2 files changed

+13
-23
lines changed

2 files changed

+13
-23
lines changed

x-pack/legacy/plugins/transform/public/app/sections/transform_management/components/create_transform_button/create_transform_button.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,19 @@ export const CreateTransformButton: FC<CreateTransformButtonProps> = ({ onClick
2828
!capabilities.canStartStopTransform;
2929

3030
const createTransformButton = (
31-
<>
32-
<EuiButton
33-
disabled={disabled}
34-
fill
35-
onClick={onClick}
36-
iconType="plusInCircle"
37-
size="s"
38-
data-test-subj="transformButtonCreate"
39-
>
40-
<FormattedMessage
41-
id="xpack.transform.transformList.createTransformButton"
42-
defaultMessage="Create transform"
43-
/>
44-
</EuiButton>
45-
</>
31+
<EuiButton
32+
disabled={disabled}
33+
fill
34+
onClick={onClick}
35+
iconType="plusInCircle"
36+
size="s"
37+
data-test-subj="transformButtonCreate"
38+
>
39+
<FormattedMessage
40+
id="xpack.transform.transformList.createTransformButton"
41+
defaultMessage="Create transform"
42+
/>
43+
</EuiButton>
4644
);
4745

4846
if (disabled) {

x-pack/legacy/plugins/transform/public/app/services/documentation/documentation_links.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ class DocumentationLinksService {
2323
public getTransformPluginDocUrl() {
2424
return `${this.esPluginDocBasePath}${TRANSFORM_DOC_PATHS.plugins}`;
2525
}
26-
27-
public getSnapshotDocUrl() {
28-
return `${this.esDocBasePath}/modules-snapshots.html#snapshots-take-snapshot`;
29-
}
30-
31-
public getCronUrl() {
32-
return `${this.esStackOverviewDocBasePath}/trigger-schedule.html#schedule-cron`;
33-
}
3426
}
3527

3628
export const documentationLinksService = new DocumentationLinksService();

0 commit comments

Comments
 (0)