Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-09 19:43:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c46ddcb0c8403e3c09dd41624353786ba1bf116b
c46ddcb0
1 parent
d0560600
UserStatus 컴포넌트 추가
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
web/src/components/room/UserStatus.tsx
web/src/components/room/UserStatus.tsx
0 → 100644
View file @
c46ddcb
import React from 'react';
import { User } from './types';
interface UserStatusProps {
user: User;
}
export const UserStatus: React.FC<UserStatusProps> = ({ user }) => {
return (
<div className='w-20 h-12 m-4 rounded-lg shadow'>
<div className={`${user.admin ? 'text-blue-500' :
user.ready ? 'text-green-500' : 'text-black'}
text-lg text-center align-middle my-2.5`}>
{user.username}</div>
</div>
)
}
\ No newline at end of file
Please
register
or
login
to post a comment