mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 09:59:10 +00:00
feat: add server message in editor
This commit is contained in:
parent
be16da1686
commit
1829035694
4 changed files with 54 additions and 8 deletions
|
@ -0,0 +1,16 @@
|
|||
import { MultilineTextInput } from '@roleypoly/design-system/atoms/text-input';
|
||||
import { EditorShellProps } from '@roleypoly/design-system/organisms/editor-shell';
|
||||
import * as React from 'react';
|
||||
|
||||
export const EditorDetailsTab = (props: EditorShellProps) => {
|
||||
const [serverMessage, updateServerMessage] = React.useState(props.guild.data.message);
|
||||
return (
|
||||
<div>
|
||||
Server Message
|
||||
<MultilineTextInput
|
||||
value={serverMessage}
|
||||
onChange={(eventData) => updateServerMessage(eventData.target.value)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
export * from './EditorDetailsTab';
|
Loading…
Add table
Add a link
Reference in a new issue