-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2eab14
commit 66897f8
Showing
8 changed files
with
70 additions
and
32 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
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,21 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
type EmptyStateProps = { | ||
children?: ReactNode; | ||
} & React.HTMLAttributes<HTMLDivElement>; | ||
|
||
const EmptyState: React.FC<EmptyStateProps> = ({ children, ...props }) => ( | ||
<div {...props}> | ||
<div className="flex justify-center"> | ||
<img src="/empty-state.svg" /> | ||
</div> | ||
|
||
<div className="text-center flex flex-col justify-center gap-3"> | ||
<h1 className="text-3xl">It's empty in here</h1> | ||
|
||
<p className="text-gray-600 dark:text-gray-400 flex-wrap">{children}</p> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default EmptyState; |
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 { KnowledgeGroupUser } from '~/types'; | ||
import SupabaseService, { SupabaseServiceConstructor } from './SupabaseService'; | ||
|
||
export class KnowledgeGroupUserService extends SupabaseService< | ||
KnowledgeGroupUser, | ||
{ | ||
id?: number; | ||
knowledge_group_id: number; | ||
role: 'moderator' | 'user'; | ||
user_id: string; | ||
} | ||
> { | ||
constructor(props: Omit<SupabaseServiceConstructor, 'table'>) { | ||
super({ | ||
...props, | ||
table: 'knowledge_group_users', | ||
}); | ||
} | ||
} |
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