From d703fb66aa3940f8c75dc74d82e1a79e47bf5e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 30 Aug 2018 21:56:22 +0100 Subject: [PATCH] fix(ui): remove dead code This function isn't used by react-style, it doesn't match any valid function names, there's singleValue but we don't want break-word on that, it default to truncating too long text --- ui/src/Components/MultiSelect/index.js | 5 ----- .../__snapshots__/AlertManagerInput.test.js.snap | 1 - .../SilenceModal/__snapshots__/LabelNameInput.test.js.snap | 1 - .../SilenceModal/__snapshots__/LabelValueInput.test.js.snap | 1 - 4 files changed, 8 deletions(-) diff --git a/ui/src/Components/MultiSelect/index.js b/ui/src/Components/MultiSelect/index.js index 3ee134f4d..d8a528d52 100644 --- a/ui/src/Components/MultiSelect/index.js +++ b/ui/src/Components/MultiSelect/index.js @@ -41,11 +41,6 @@ const ReactSelectStyles = { borderRadius: "0.25rem", backgroundColor: "#fff" }, - valueLabel: (base, state) => ({ - ...base, - whiteSpace: "normal", - wordWrap: "break-word" - }), multiValue: (base, state) => ({ ...base, borderRadius: "4px", diff --git a/ui/src/Components/SilenceModal/__snapshots__/AlertManagerInput.test.js.snap b/ui/src/Components/SilenceModal/__snapshots__/AlertManagerInput.test.js.snap index 0a6937c7b..50da3b856 100644 --- a/ui/src/Components/SilenceModal/__snapshots__/AlertManagerInput.test.js.snap +++ b/ui/src/Components/SilenceModal/__snapshots__/AlertManagerInput.test.js.snap @@ -148,7 +148,6 @@ exports[` matches snapshot 1`] = ` "multiValueRemove": [Function], "option": [Function], "valueContainer": [Function], - "valueLabel": [Function], } } /> diff --git a/ui/src/Components/SilenceModal/__snapshots__/LabelNameInput.test.js.snap b/ui/src/Components/SilenceModal/__snapshots__/LabelNameInput.test.js.snap index 402cf5405..332b0ac3d 100644 --- a/ui/src/Components/SilenceModal/__snapshots__/LabelNameInput.test.js.snap +++ b/ui/src/Components/SilenceModal/__snapshots__/LabelNameInput.test.js.snap @@ -34,7 +34,6 @@ exports[` matches snapshot 1`] = ` "multiValueRemove": [Function], "option": [Function], "valueContainer": [Function], - "valueLabel": [Function], } } /> diff --git a/ui/src/Components/SilenceModal/__snapshots__/LabelValueInput.test.js.snap b/ui/src/Components/SilenceModal/__snapshots__/LabelValueInput.test.js.snap index bd95bf6d4..269f13542 100644 --- a/ui/src/Components/SilenceModal/__snapshots__/LabelValueInput.test.js.snap +++ b/ui/src/Components/SilenceModal/__snapshots__/LabelValueInput.test.js.snap @@ -30,7 +30,6 @@ exports[` matches snapshot 1`] = ` "multiValueRemove": [Function], "option": [Function], "valueContainer": [Function], - "valueLabel": [Function], } } />