0
0
Fork 0
This commit is contained in:
xeltica 2021-10-03 01:56:08 +09:00
parent d8f127ab81
commit a8374321b9
37 changed files with 61 additions and 4321 deletions

View file

@ -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); },
})),
}));