Last active
January 23, 2022 12:56
-
-
Save SahanAmarsha/d064299abd5ea5c75458ad22d9e8331b to your computer and use it in GitHub Desktop.
App.js after extending the code via override props
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NavBar } from "./ui-components"; | |
import "./App.css"; | |
function App() { | |
const navbarOverrides = { | |
"Flex.Flex[0].Image[0]": { | |
src: "https://img.icons8.com/color/50/000000/car--v1.png", // app logo | |
}, | |
"Flex.Flex[2].Image[0]": { | |
src: "https://www.bootdey.com/app/webroot/img/Content/avatar/avatar1.png", // profile image | |
}, | |
}; | |
return ( | |
<div className="App"> | |
<NavBar overrides={navbarOverrides} width={"100%"}/> | |
<header className="App-header"> | |
<h1>Car Rental App</h1> | |
</header> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment