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

Course title #6

Open
wants to merge 2 commits into
base: master
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
admin-client/node_modules
.idea
node_nodules

1 change: 0 additions & 1 deletion admin-client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ function InitUser() {
})
}
} catch (e) {

setUser({
isLoading: false,
userEmail: null
Expand Down
10 changes: 8 additions & 2 deletions admin-client/src/components/Course.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ function UpdateCard() {
}

function CourseCard(props) {
const title = useRecoilValue(courseTitle);
const imageLink = useRecoilValue(courseImage);

return <div style={{display: "flex", marginTop: 50, justifyContent: "center", width: "100%"}}>
Expand All @@ -159,13 +158,20 @@ function CourseCard(props) {
}}>
<img src={imageLink} style={{width: 350}} ></img>
<div style={{marginLeft: 10}}>
<Typography variant="h5">{title}</Typography>
<CardTitle />
<Price />
</div>
</Card>
</div>
}

const CardTitle = () => {
const title = useRecoilValue(courseTitle);
return (
<div>
<Typography variant="h5">{title}</Typography>
</div>)
}
function Price() {

const price = useRecoilValue(coursePrice);
Expand Down
Loading