Skip to content

Commit

Permalink
--fix the linting issue-
Browse files Browse the repository at this point in the history
  • Loading branch information
Rash-Hit committed Mar 10, 2024
1 parent 332b98d commit e7eb30f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 35 deletions.
12 changes: 6 additions & 6 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ export function ToggleButton({
<span
className={`dark:bg-white bg-black block transition-all duration-300 ease-out
h-0.5 w-6 rounded-sm my-0.5 ${
!sidebarOpen ? 'opacity-0' : 'opacity-100'
}`}
!sidebarOpen ? 'opacity-0' : 'opacity-100'
}`}
></span>
<span
className={`dark:bg-white bg-black block transition-all duration-300 ease-out
h-0.5 w-6 rounded-sm ${
!sidebarOpen
? '-rotate-45 -translate-y-1'
: 'translate-y-0.5'
}`}
!sidebarOpen
? '-rotate-45 -translate-y-1'
: 'translate-y-0.5'
}`}
></span>
</button>
);
Expand Down
56 changes: 28 additions & 28 deletions src/components/admin/AddContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,38 +53,38 @@ export const AddContent = ({
placeholder="Image url"
onChange={(e) => setImageUri(e.target.value)}
/>
<Input
className="dark:text-white text-black"
type="text"
placeholder="Admin password"
onChange={(e) => setAdminPassword(e.target.value)}
/>
<Input
className="dark:text-white text-black"
type="text"
placeholder="Admin password"
onChange={(e) => setAdminPassword(e.target.value)}
/>
</div>
{type === 'video' && <AddVideosMetadata onChange={setMetadata} />}
{type === 'notion' && <AddNotionMetadata onChange={setMetadata} />}
<button
onClick={async () => {
await fetch('/api/admin/content', {
body: JSON.stringify({
type,
description: '',
thumbnail: imageUri,
title,
courseId,
parentContentId,
metadata,
adminPassword,
}),
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
});
}}
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
>
<button
onClick={async () => {
await fetch('/api/admin/content', {
body: JSON.stringify({
type,
description: '',
thumbnail: imageUri,
title,
courseId,
parentContentId,
metadata,
adminPassword,
}),
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
});
}}
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
>
Submit
</button>
</button>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/landing/appbar/nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function NavigationMenu() {
</DrawerClose>
</Button>


<AppbarAuth isInMenu={true} />
</div>
</div>
Expand Down

0 comments on commit e7eb30f

Please sign in to comment.