fix: 그리드 버튼 수정, 환경변수 수정

- 그리드 버튼 클릭 후 팝오버 사라지게 함
- 환경변수에 port 기본값 삭제
This commit is contained in:
shinmj
2021-12-29 14:13:16 +09:00
parent 9123b92e92
commit bffcc1b31b
3 changed files with 8 additions and 8 deletions

View File

@@ -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) => {

View File

@@ -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'

View File

@@ -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'