diff options
author | 2021-01-24 18:12:36 +0100 | |
---|---|---|
committer | 2021-02-15 10:13:43 +0100 | |
commit | eb8e3f1dd891ac98f1bbaf35a2a0679146785236 (patch) | |
tree | c7768442c40667e2d2ee49247e28c1b532b497cd /ui-react/src/components/menu/__snapshots__ | |
parent | 9d04a9cc8c6f4b12ae60cc0d4d42f71085f72328 (diff) |
Add New UI component for policies list
Add new Ui components to list policies + the small refactoring of React Routes
Issue-ID: POLICY-2925
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I784d7c144a3a3af98a9d62b5d40b5172dbdaed47
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'ui-react/src/components/menu/__snapshots__')
-rw-r--r-- | ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap | 565 |
1 files changed, 308 insertions, 257 deletions
diff --git a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap index 92444ea3d..69a0e85db 100644 --- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap +++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap @@ -15,29 +15,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -52,7 +52,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` } } disabled={false} - to="/ViewLoopTemplatesModal" + to="/viewLoopTemplatesModal" > View All Templates </DropdownItem> @@ -70,29 +70,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -121,29 +121,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -172,29 +172,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -209,10 +209,61 @@ exports[`Verify MenuBar Test the render method 1`] = ` } } disabled={false} - to="/ManageDictionaries" + to="/manageDictionaries" > Manage Metadata Dictionaries </DropdownItem> + <DropdownItem + as={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": ComponentStyle { + "componentId": "sc-bdVaJa", + "isStatic": false, + "rules": Array [ + " + color: ", + [Function], + "; + background-color: ", + [Function], + "; + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", + [Function], + "; + color: ", + [Function], + "; + } +", + ], + }, + "displayName": "Styled(Link)", + "foldedComponentIds": Array [], + "render": [Function], + "styledComponentId": "sc-bdVaJa", + "target": [Function], + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + disabled={false} + to="/viewAllPolicies" + > + View All Policies + </DropdownItem> </Styled(NavDropdown)> <Styled(NavDropdown) title="Loop Instance" @@ -227,29 +278,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -278,29 +329,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -329,29 +380,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -380,29 +431,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -434,29 +485,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -485,29 +536,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -540,29 +591,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -591,29 +642,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -642,29 +693,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -693,29 +744,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -747,29 +798,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -798,29 +849,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, @@ -864,29 +915,29 @@ exports[`Verify MenuBar Test the render method 1`] = ` "isStatic": false, "rules": Array [ " - color: ", + color: ", [Function], "; - background-color: ", + background-color: ", [Function], "; - font-weight: normal; - display: block; - width: 100%; - padding: .25rem 1.5rem; - clear: both; - text-align: inherit; - white-space: nowrap; - border: 0; - :hover { - text-decoration: none; - background-color: ", + font-weight: normal; + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + text-align: inherit; + white-space: nowrap; + border: 0; + :hover { + text-decoration: none; + background-color: ", [Function], "; - color: ", + color: ", [Function], "; - } + } ", ], }, |