fix: 그리드 버튼 수정, 환경변수 수정
- 그리드 버튼 클릭 후 팝오버 사라지게 함 - 환경변수에 port 기본값 삭제
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import React, { useState } from 'react'
|
||||
|
||||
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'
|
||||
import Box from '@material-ui/core/Box'
|
||||
import { Button } from '@material-ui/core'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { ConfirmPopover } from '@components/Confirm'
|
||||
import { Button } from '@material-ui/core'
|
||||
import Box from '@material-ui/core/Box'
|
||||
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'
|
||||
import React, { useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
@@ -38,6 +37,7 @@ const GridButtons: React.FC<IGridButtonProps> = ({
|
||||
const onClickDelete = async (event: React.MouseEvent<HTMLButtonElement>) => {
|
||||
event.preventDefault()
|
||||
handleDelete(id)
|
||||
setAnchorEl(null)
|
||||
}
|
||||
|
||||
const handlePopover = (target: HTMLButtonElement | null) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const { i18n } = require('./next-i18next.config')
|
||||
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
|
||||
|
||||
const port = process.env.PORT || 3000
|
||||
const port = process.env.PORT
|
||||
const serverApiUrl = process.env.SERVER_API_URL || 'http://localhost:8000'
|
||||
const siteId = process.env.SITE_ID || '3'
|
||||
const mode = siteId === '2' ? 'lg' : siteId === '3' ? 'sm' : 'sm'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const DEV = process.env.NODE_ENV !== 'production'
|
||||
|
||||
export const PORT = process.env.PORT || '3000'
|
||||
export const PORT = process.env.PORT
|
||||
export const PROXY_HOST = process.env.PROXY_HOST || `http://localhost:${PORT}`
|
||||
|
||||
export const TZ = process.env.TZ || 'Asia/Seoul'
|
||||
|
||||
Reference in New Issue
Block a user