Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed error and warning #426

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 9 additions & 26 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,26 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0,user-scalable=0" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1.0,user-scalable=0"
/>
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link
rel="stylesheet"
href="path/to/font-awesome/css/font-awesome.min.css"
/>
<title>Planet Farms</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="app"></div>
<script src="index.jsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="text/jsx" src="index.jsx"></script>
</body>
</html>
11 changes: 6 additions & 5 deletions src/components/myCoursesCard/MyCoursesCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,19 @@ export default MyCoursesCard

const CourseCard = ({ data }) => {
return (
data && data.map(item => {
data &&
data.map((item, i) => {
return (
<Background image={item.bgImage}>
<Background staticImg={item.bgImage} key={i}>
<div className='my-course-content'>
<h3>{item.name}</h3>
<p>{item.activity || item.status}</p>
{
item.lesson && <div className='lesson-progress'>
{item.lesson && (
<div className='lesson-progress'>
<div className='lesson-completed' />
<span>{item.lesson}</span>
</div>
}
)}
</div>
</Background>
)
Expand Down
9 changes: 8 additions & 1 deletion src/components/searchComponent/SearchComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import './SearchComponent.scss'
const SearchComponent = ({ className, search, setSearch, showEditIcon }) => {
return (
<div className='search-btn'>
<img src='/img/search-outline-icon.svg' alt='Search' /> <input value={search} type='text' onChange={(e) => setSearch(e.target.value)} className='search-1' placeholder='Search...' />
<img src='/img/search-outline-icon.svg' alt='Search' />{' '}
<input
value={search || ''}
type='text'
onChange={(e) => setSearch(e.target.value)}
className='search-1'
placeholder='Search...'
/>
{showEditIcon && <img src='/img/edit-icon.svg' alt='edit icon' />}
</div>
)
Expand Down
Loading