Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

feat: add NavBar component #2143

Merged
merged 9 commits into from
Jun 16, 2020
Merged

feat: add NavBar component #2143

merged 9 commits into from
Jun 16, 2020

Conversation

goga-m
Copy link
Contributor

@goga-m goga-m commented Jun 15, 2020

Summary

Depends on #2142

2020-06-15-212411_1247x396_scrot

Usage:

	const menu = [
		{
			title: "Portfolio",
			path: "/portfolio",
		},
		{
			title: "Plugins",
			path: "/plugins",
		},
		{
			title: "Exchange",
			path: "/exchange",
		},
		{
			title: "News",
			path: "/news",
		},
	];

	const userActionsMenu = [
		{
			label: "Contacts",
			value: "contacts",
		},
		{
			label: "Settings",
			value: "settings",
		},
		{
			label: "Support",
			value: "support",
		},
		{
			label: "Exit",
			value: "exit",
		},
	];

	return (
		<div className="-m-5">
			<NavBar
				menu={menu}
				userActions={userActionsMenu}
				onUserAction={(action: any) => alert(action.label)}
			></NavBar>
		</div>
	);
};

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@goga-m goga-m requested a review from faustbrian as a code owner June 15, 2020 18:29
@ghost ghost added the Complexity: High More than 256 lines changed. label Jun 15, 2020
Optimized SVG(s):
- src/app/assets/svg/notification.svg
- src/app/assets/svg/receive.svg
@faustbrian faustbrian changed the title Feat/component navbar feat: add NavBar component Jun 16, 2020
@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #2143 into 3.0-react will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           3.0-react     #2143    +/-   ##
============================================
  Coverage     100.00%   100.00%            
============================================
  Files             45        97    +52     
  Lines            298       741   +443     
  Branches          49       113    +64     
============================================
+ Hits             298       741   +443     
Flag Coverage Δ
#unit 100.00% <100.00%> (?)
Impacted Files Coverage Δ
src/app/components/Button/Button.tsx 100.00% <ø> (ø)
src/app/components/Card/Card.tsx 100.00% <ø> (ø)
src/app/components/Card/CardControl.tsx 100.00% <ø> (ø)
src/app/components/Circle/Circle.tsx 100.00% <ø> (ø)
src/app/components/Divider/Divider.styles.ts 100.00% <ø> (ø)
src/app/components/Divider/Divider.tsx 100.00% <ø> (ø)
src/app/components/Form/FormLabel.tsx 100.00% <ø> (ø)
src/app/components/Select/Select.tsx 100.00% <ø> (ø)
...app/components/SideBar/SideBarItem/SideBarItem.tsx 100.00% <ø> (ø)
src/app/components/StepIndicator/StepIndicator.tsx 100.00% <ø> (ø)
... and 101 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb67583...9ce1f54. Read the comment docs.

Brian Faust added 2 commits June 16, 2020 04:37
@faustbrian faustbrian merged commit d0c695e into 3.0-react Jun 16, 2020
@ghost ghost deleted the feat/component-navbar branch June 16, 2020 02:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Complexity: High More than 256 lines changed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants