wip
This commit is contained in:
parent
d8f127ab81
commit
a8374321b9
37 changed files with 61 additions and 4321 deletions
|
@ -107,10 +107,10 @@ export const SettingPage: React.VFC = () => {
|
|||
const onClickInsertVariables = useCallback<React.MouseEventHandler>((e) => {
|
||||
dispatch(showModal({
|
||||
type: 'menu',
|
||||
screenX: e.screenX,
|
||||
screenY: e.screenY,
|
||||
items: Object.keys(variables).map(key => ({
|
||||
name: '_template.variables.' + key,
|
||||
screenX: e.clientX,
|
||||
screenY: e.clientY,
|
||||
items: variables.map(key => ({
|
||||
name: t('_template._variables.' + key),
|
||||
onClick: () => { console.log(key); },
|
||||
})),
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue