mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +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
|
@ -7,11 +7,21 @@ import {
|
|||
export const EditorTemplate = (
|
||||
props: EditorShellProps & Omit<AppShellProps, 'children'>
|
||||
) => {
|
||||
const { guild, onCategoryChange, onMessageChange, onGuildChange, ...appShellProps } =
|
||||
props;
|
||||
const {
|
||||
guild,
|
||||
onCategoryChange,
|
||||
onMessageChange,
|
||||
onGuildChange,
|
||||
onRefreshCache,
|
||||
...appShellProps
|
||||
} = props;
|
||||
return (
|
||||
<AppShell {...appShellProps} activeGuildId={guild.id} small double>
|
||||
<EditorShell guild={guild} onGuildChange={onGuildChange} />
|
||||
<EditorShell
|
||||
guild={guild}
|
||||
onGuildChange={onGuildChange}
|
||||
onRefreshCache={onRefreshCache}
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue