From 04d6c2c82b2fb6b71a25aa521435a4251a8a49b0 Mon Sep 17 00:00:00 2001 From: Rory Hunter Date: Wed, 17 Jan 2018 10:37:22 +0000 Subject: [PATCH 1/3] Allow custom components to be rendered in EuiSideNav --- .../__snapshots__/side_nav.test.js.snap | 85 ++++++++++++++++++- src/components/side_nav/side_nav.js | 8 ++ src/components/side_nav/side_nav.test.js | 26 +++++- src/components/side_nav/side_nav_item.js | 57 +++++++------ 4 files changed, 147 insertions(+), 29 deletions(-) diff --git a/src/components/side_nav/__snapshots__/side_nav.test.js.snap b/src/components/side_nav/__snapshots__/side_nav.test.js.snap index 3b22e955384..6d32e1b6cb5 100644 --- a/src/components/side_nav/__snapshots__/side_nav.test.js.snap +++ b/src/components/side_nav/__snapshots__/side_nav.test.js.snap @@ -241,7 +241,90 @@ exports[`EuiSideNav items is rendered 1`] = ` `; -exports[`EuiSideNav items renders items with are links 1`] = ` +exports[`EuiSideNav items renders items using a custom component 1`] = ` + +`; + +exports[`EuiSideNav items renders items which are links 1`] = `