Skip to content

Commit

Permalink
Merge pull request #118 from cuculus-dev/feature/update-cuculus-api
Browse files Browse the repository at this point in the history
cuculus-client更新
  • Loading branch information
takecchi authored Dec 5, 2023
2 parents 349863a + 29a9ed0 commit b6a08be
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"dependencies": {
"@cuculus/cuculus-api": "^0.3.3",
"@cuculus/cuculus-api": "^0.4.0",
"@ducanh2912/next-pwa": "^9.7.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ProfilePage({ fallbackData }: Props) {
followingCount={data.followingCount}
followersCount={data.followersCount}
createdAt={data.createdAt}
description={data.description}
bio={data.bio}
profileImageUrl={data.profileImageUrl}
url={data.url}
verified={data.verified}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const NormalProfileCard: Story = {
profileImageUrl: '/mock/profileAvatarImage.png',
protected: false,
verified: false,
description: 'こんにちは。',
bio: 'こんにちは。',
url: '',
followersCount: 2,
followingCount: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ interface ProfileCardProps {
name: string;
username: string;
createdAt: Date;
description: string;
bio: string;
profileImageUrl: string;
protected: boolean;
url: string;
Expand All @@ -94,7 +94,7 @@ export default function ProfileCard({
id,
name,
username,
description,
bio,
profileImageUrl,
followersCount,
followingCount,
Expand Down Expand Up @@ -170,7 +170,7 @@ export default function ProfileCard({
<DisplayName>{name}</DisplayName>
<UserName>@{username}</UserName>
</VFlex>
<Bio>{description}</Bio>
<Bio>{bio}</Bio>

<HFlex gap={2}>
{followingCount != undefined && (
Expand Down
4 changes: 2 additions & 2 deletions src/app/(menu)/(public)/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export async function generateMetadata({ params }: Params): Promise<Metadata> {

const title = `${user.name} (@${user.username}) さん | Cuculus`;
const description =
user.description.length > 0
? user.description
user.bio.length > 0
? user.bio
: `${user.name} さんはCuculusを利用しています。`;

return {
Expand Down

0 comments on commit b6a08be

Please sign in to comment.