-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/V1.1.0' into main
- Loading branch information
Showing
29 changed files
with
772 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "pcot", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"private": true, | ||
"homepage": ".", | ||
"dependencies": { | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { useGetOrganizationInfo } from "@hooks/useGetOrganizationInfo"; | ||
import React, { useEffect, useState } from "react"; | ||
|
||
import * as S from "./style"; | ||
|
||
export const API_URL = process.env.REACT_APP_API; | ||
|
||
export const OrganizationInfo = (props: any) => { | ||
const { serchOrganizationMoreInfo } = useGetOrganizationInfo(); | ||
const [organizationInfo, setOrganizationInfo] = useState<any>(); | ||
useEffect(() => { | ||
const name = props.name; | ||
serchOrganizationMoreInfo(name) | ||
.then((res) => { | ||
console.log(res.data); | ||
setOrganizationInfo( | ||
<S.InfoArea> | ||
<S.Flex> | ||
<S.OrganizationName>{res.data.name}</S.OrganizationName> | ||
<S.Info>{res.data.exposure}</S.Info> | ||
</S.Flex> | ||
<S.Comment>{res.data.comment}</S.Comment> | ||
<S.Info>{res.data.planName}</S.Info> | ||
<S.Date>{res.data.createTime}</S.Date> | ||
</S.InfoArea>, | ||
); | ||
}) | ||
.catch((err) => { | ||
console.log(err); | ||
}); | ||
}, []); | ||
return ( | ||
<S.Container> | ||
<S.Title> | ||
<S.TitleText>Information</S.TitleText> | ||
</S.Title> | ||
<S.Container>{organizationInfo}</S.Container> | ||
</S.Container> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.div` | ||
text-align: left; | ||
`; | ||
|
||
export const InfoArea = styled.div` | ||
margin-left: 325px; | ||
margin-right: 75px; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-areas: "info"; | ||
`; | ||
|
||
export const Title = styled.span` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-areas: "title button"; | ||
`; | ||
|
||
export const TitleText = styled.div` | ||
font-family: Pretendard; | ||
font-size: 30px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: normal; | ||
grid-area: title; | ||
justify-self: start; | ||
margin-left: 50px; | ||
margin-top: 15px; | ||
@media (max-width: 768px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const OrganizationName = styled.div` | ||
grid-area: imgname; | ||
font-family: Pretendard; | ||
font-size: 25px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
margin-bottom: 10px; | ||
align-self: center; | ||
margin-right: 10px; | ||
`; | ||
|
||
export const Comment = styled.div` | ||
grid-area: imgname; | ||
font-family: Pretendard; | ||
font-size: 20px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
align-self: center; | ||
margin-top: 2px; | ||
`; | ||
|
||
export const Info = styled.div` | ||
grid-area: imgname; | ||
color: #7a7a7a; | ||
font-family: Pretendard; | ||
font-size: 15px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
align-self: center; | ||
margin-top: 2px; | ||
`; | ||
|
||
export const Date = styled.h1` | ||
font-size: small; | ||
/* float: right; */ | ||
margin-right: 5px; | ||
text-align: right; | ||
color: gray; | ||
`; | ||
|
||
export const Flex = styled.div` | ||
display: flex; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useGetOrganizationInfo } from "@hooks/useGetOrganizationInfo"; | ||
import React, { useEffect, useState } from "react"; | ||
|
||
import * as S from "./style"; | ||
|
||
export const API_URL = process.env.REACT_APP_API; | ||
|
||
export const OrganizationManupulate = (props: any) => { | ||
return ( | ||
<S.Container> | ||
<S.Title> | ||
<S.TitleText>Manipulate</S.TitleText> | ||
</S.Title> | ||
<S.EditArea> | ||
<S.Edit>Invite people</S.Edit> | ||
<S.Edit>Change Profile Image</S.Edit> | ||
<S.EditWarning>Change Exposure</S.EditWarning> | ||
<S.EditWarning>Delete</S.EditWarning> | ||
</S.EditArea> | ||
</S.Container> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.div` | ||
text-align: left; | ||
`; | ||
|
||
export const Title = styled.span` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-areas: "title button"; | ||
`; | ||
|
||
export const TitleText = styled.div` | ||
font-family: Pretendard; | ||
font-size: 30px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: normal; | ||
grid-area: title; | ||
justify-self: start; | ||
margin-left: 50px; | ||
margin-top: 15px; | ||
@media (max-width: 768px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const EditArea = styled.div` | ||
margin-left: 325px; | ||
margin-right: 75px; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-areas: "info"; | ||
`; | ||
|
||
export const Edit = styled.div` | ||
grid-area: imgname; | ||
color: black; | ||
cursor: pointer; | ||
font-family: Pretendard; | ||
font-size: 23px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
align-self: center; | ||
margin-top: 4px; | ||
`; | ||
|
||
export const EditWarning = styled.div` | ||
grid-area: imgname; | ||
color: red; | ||
cursor: pointer; | ||
font-family: Pretendard; | ||
font-size: 23px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
align-self: center; | ||
margin-top: 4px; | ||
`; | ||
|
||
export const Date = styled.h1` | ||
font-size: small; | ||
/* float: right; */ | ||
margin-right: 5px; | ||
text-align: right; | ||
color: gray; | ||
`; | ||
|
||
export const Flex = styled.div` | ||
display: flex; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.