Skip to content

Commit

Permalink
Merge pull request #60 from WildCodeSchool/making-better-database
Browse files Browse the repository at this point in the history
Making better database
  • Loading branch information
mahdimcheik authored Mar 9, 2024
2 parents 02f35fe + feb1ad3 commit 5e09987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
18 changes: 2 additions & 16 deletions frontend/src/admin/VideoUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function VideoUpload() {
formData.append("description", datas.description);
formData.append("tags", datas.tags);
formData.append("playlistId", datas.playlistId);
formData.append("playlistTitle", datas.playlistTitle);
formData.append("playlistTitle", "");

setIsUploading(true);
const { data } = await axios.post(
Expand Down Expand Up @@ -131,7 +131,7 @@ export default function VideoUpload() {
/>
</Input.Wrapper>
</Grid.Col>{" "}
<Grid.Col span={6}>
<Grid.Col span={12}>
<Input.Wrapper
label="Playlist Id"
withAsterisk
Expand All @@ -145,20 +145,6 @@ export default function VideoUpload() {
/>
</Input.Wrapper>
</Grid.Col>
<Grid.Col span={6}>
<Input.Wrapper
label="Titre playlist"
withAsterisk
description="Titre playliste"
>
<Input
name="playlistTitle"
placeholder="Titre playliste"
value={datas.playlistTitle}
onChange={(e) => handleInput(e)}
/>
</Input.Wrapper>
</Grid.Col>
</Grid>
<Grid gutter={{ base: 5, xs: "md", md: "xl", xl: 50 }}>
<Grid.Col span={3}>
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/pages/PageUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function PageUser() {
/>
<div className="user-details">
<div>
<Spoiler maxHeight={200} showLabel="Show more" hideLabel="Hide">
<Spoiler maxHeight={200} showLabel="Plus" hideLabel="Moins">
<h3>Profil</h3>
{!editMode ? (
<div>
Expand Down Expand Up @@ -173,7 +173,10 @@ export default function PageUser() {
name="profilImage"
onChange={handleChange}
/>
<br />
<br />
</div>
<br />
<Grid gutter={{ base: 5, xs: "md", md: "xl", xl: 50 }}>
<Grid.Col span={6}>
{" "}
Expand All @@ -190,7 +193,6 @@ export default function PageUser() {
</Input.Wrapper>
</Grid.Col>
<Grid.Col span={6}>
{" "}
<Input.Wrapper
label="Nom"
withAsterisk
Expand Down Expand Up @@ -233,7 +235,7 @@ export default function PageUser() {
}
message={
!user.isActive
? "Verifier vos email pour activer votre compte"
? "Verifier vos emails pour activer votre compte"
: "Compte active"
}
/>
Expand Down

0 comments on commit 5e09987

Please sign in to comment.