-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from s-xix98/221-ユーザーをクリックらそのユーザーの情報をモーダルウィンド…
…ウ的なので表示させるます 221 ユーザーをクリックしたらそのユーザーの情報をモーダルウィンドウ的なので表示させるます
- Loading branch information
Showing
10 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+748 Bytes
(100%)
frontend/src/app/__image_snapshots__/app-page--select-channel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+740 Bytes
(100%)
frontend/src/app/__image_snapshots__/app-page--send-msg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+722 Bytes
(100%)
frontend/src/app/__image_snapshots__/app-page--send-some-msg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
14 changes: 14 additions & 0 deletions
14
frontend/src/features/user/components/UserDetailsModal.stories.tsx
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,14 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { User } from './User'; | ||
|
||
const meta = { | ||
component: User, | ||
tags: ['autodocs'], | ||
} satisfies Meta<typeof User>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof User>; | ||
|
||
export const Basic: Story = {}; |
23 changes: 23 additions & 0 deletions
23
frontend/src/features/user/components/UserDetailsModal.tsx
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,23 @@ | ||
'use client'; | ||
import Modal from 'react-modal'; | ||
|
||
import { UserInfo } from '../types/UserDto'; | ||
|
||
Modal.setAppElement('body'); | ||
export const UserDetailsModal = ({ | ||
userInfo, | ||
modalIsOpen, | ||
closeModal, | ||
}: { | ||
userInfo: UserInfo; | ||
modalIsOpen: boolean; | ||
closeModal: () => void; | ||
}) => { | ||
return ( | ||
<Modal isOpen={modalIsOpen} onRequestClose={closeModal}> | ||
<p> | ||
id : {userInfo?.id}, name : {userInfo?.nickname} | ||
</p> | ||
</Modal> | ||
); | ||
}; |
Binary file added
BIN
+18.5 KB
...onents/__image_snapshots__/features-user-components-userdetailsmodal--basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.