mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
add an instant cache refresh to the editor
This commit is contained in:
parent
68b2b7323b
commit
0836d548b2
6 changed files with 66 additions and 11 deletions
|
@ -15,6 +15,7 @@ export type EditorShellProps = {
|
|||
onGuildChange?: (guild: PresentableGuild) => void;
|
||||
onCategoryChange?: (category: Category) => void;
|
||||
onMessageChange?: (message: PresentableGuild['data']['message']) => void;
|
||||
onRefreshCache?: () => void;
|
||||
};
|
||||
|
||||
export const EditorShell = (props: EditorShellProps) => {
|
||||
|
@ -69,7 +70,11 @@ export const EditorShell = (props: EditorShellProps) => {
|
|||
guild={guild.guild}
|
||||
/>
|
||||
<Space />
|
||||
<ServerCategoryEditor guild={guild} onChange={replaceCategories} />
|
||||
<ServerCategoryEditor
|
||||
guild={guild}
|
||||
onChange={replaceCategories}
|
||||
onRefreshCache={props.onRefreshCache}
|
||||
/>
|
||||
<LinedSpace />
|
||||
<ServerUtilities guildData={guild.data} />
|
||||
</Container>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue