-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor collaboration library to its own module
* Add Loading Skeleton to Sidebar items
- Loading branch information
1 parent
7af2717
commit d4e03f5
Showing
15 changed files
with
286 additions
and
199 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
// FIXME Collaboration features not working correctly on React.StrictMode | ||
reactStrictMode: false, | ||
reactStrictMode: true, | ||
}; | ||
|
||
module.exports = nextConfig; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,5 @@ function ActiveUsers() { | |
</div> | ||
); | ||
} | ||
|
||
export default ActiveUsers; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { PropsWithChildren } from "react"; | ||
import Header from "../Header"; | ||
import SideNavigation from "../SideNavigation"; | ||
|
||
async function Layout({ children }: PropsWithChildren) { | ||
return ( | ||
<div className="grid lg:grid-cols-[20rem_auto]"> | ||
<aside className="hidden lg:block"> | ||
<SideNavigation /> | ||
</aside> | ||
<div> | ||
<Header /> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Layout; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Editor } from "@/components/Editor"; | ||
|
||
function Page() { | ||
return <Editor />; | ||
} | ||
|
||
export default Page; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import clsx from "clsx"; | ||
import { ComponentPropsWithoutRef } from "react"; | ||
|
||
function Skeleton({ | ||
children, | ||
className, | ||
...rest | ||
}: ComponentPropsWithoutRef<"div">) { | ||
return ( | ||
<div | ||
{...rest} | ||
className={clsx("animate-pulse rounded-lg bg-slate-700", className)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
export default Skeleton; |
Oops, something went wrong.