diff --git a/egovframe-template-simple-react-contribution/src/components/Loading.jsx b/egovframe-template-simple-react-contribution/src/components/Loading.jsx index 105c1c7..7de64dd 100644 --- a/egovframe-template-simple-react-contribution/src/components/Loading.jsx +++ b/egovframe-template-simple-react-contribution/src/components/Loading.jsx @@ -2,20 +2,19 @@ import React from 'react'; import {Blocks} from "react-loader-spinner"; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; +import {LoadingDiv} from "./Loading.style"; function Loading () { return ( - - - - - + + + ) ; }; diff --git a/egovframe-template-simple-react-contribution/src/components/Loading.style.jsx b/egovframe-template-simple-react-contribution/src/components/Loading.style.jsx new file mode 100644 index 0000000..9c27ea0 --- /dev/null +++ b/egovframe-template-simple-react-contribution/src/components/Loading.style.jsx @@ -0,0 +1,7 @@ +import styled from 'styled-components' + +export const LoadingDiv = styled.div` + min-height: 83vh; + padding-top: calc(40vh - 150px); + padding-left: calc(54vw - 150px); +` diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/Sb.style.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/Sb.style.js index 4f19d4b..425da12 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/Sb.style.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/Sb.style.js @@ -1,5 +1,4 @@ import styled from "styled-components"; -import { Link } from 'react-router-dom'; // 사이드바 전체를 감싸는 div export const SbContainer = styled.div` @@ -37,10 +36,4 @@ export const VwDiv = styled.div` export const VwPtag = styled.p` cursor: ${props => (props.isTitle?'pointer':'')}; -`; - -// 제일 하위메뉴에서 클릭할 Link -export const SbLink = styled(Link)` - color: inherit; - text-decoration: inherit; `; \ No newline at end of file diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js index a889614..3077f96 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/viewer.js @@ -186,7 +186,7 @@ function CodeViewer(props) { console.groupEnd("viewer"); return ( <> - {treeLoading && docLoading? ():( + {treeLoading || docLoading? ():(