@bbki.ng/site 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 1.1.8
4
+
5
+ ## 1.1.7
6
+
3
7
  ## 1.1.6
4
8
 
5
9
  ## 1.1.5
package/dev-dist/sw.js CHANGED
@@ -98,7 +98,7 @@ define(["./workbox-baccbcc1"], function (workbox) {
98
98
  [
99
99
  {
100
100
  url: "index.html",
101
- revision: "0.5299a0oa4co",
101
+ revision: "0.7lbb0v70eog",
102
102
  },
103
103
  ],
104
104
  {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "url": "git+https://github.com/bbbottle/bbki.ng.git"
17
17
  },
18
18
  "dependencies": {
19
- "@bbki.ng/components": "workspace:2.1.36",
19
+ "@bbki.ng/components": "workspace:2.1.37",
20
20
  "@supabase/supabase-js": "^1.30.6",
21
21
  "classnames": "2.3.1",
22
22
  "react": "^18.0.0",
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { useProjects } from "@/hooks/use_projects";
3
- import { Link, Gallery, ImageRenderer, LinkList } from "@bbki.ng/components";
4
3
  import { CenterLinkList, MySuspense } from "@/components";
5
4
 
6
5
  const Projects = () => {
@@ -3,16 +3,16 @@ import { ArticleList } from "./consts";
3
3
  import { LinkList, LinkProps } from "@bbki.ng/components";
4
4
  import { useRouteName } from "@/hooks";
5
5
  import { usePosts } from "@/hooks/use_posts";
6
- import { CenterLinkList } from "@/components";
6
+ import { CenterLinkList, MySuspense } from "@/components";
7
7
 
8
8
  type TxtProps = {
9
9
  title?: string;
10
10
  articleList?: LinkProps[];
11
11
  };
12
12
 
13
- export default (props: TxtProps) => {
13
+ const Posts = (props: TxtProps) => {
14
14
  const name = useRouteName();
15
- const { titleList, isLoading, isError } = usePosts();
15
+ const { titleList, isLoading, isError } = usePosts("", true);
16
16
 
17
17
  if (isLoading) {
18
18
  return null;
@@ -28,3 +28,11 @@ export default (props: TxtProps) => {
28
28
 
29
29
  return <CenterLinkList links={props.articleList || links} title=" " />;
30
30
  };
31
+
32
+ export default (props: TxtProps) => {
33
+ return (
34
+ <MySuspense>
35
+ <Posts {...props} />
36
+ </MySuspense>
37
+ );
38
+ };