-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#35] feat : Align comments by created time
- Loading branch information
Showing
17 changed files
with
312 additions
and
176 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
File renamed without changes.
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,37 @@ | ||
import React, { useEffect } from 'react'; | ||
import qs from 'qs'; | ||
import axios from 'axios'; | ||
import URL from '../../util/url'; | ||
import Main from '../main/Main'; | ||
import { RouteComponentProps } from 'react-router-dom'; | ||
|
||
interface Props extends RouteComponentProps {} | ||
|
||
const GoogleOauth: React.FC<Props> = ({ history, location }) => { | ||
useEffect(() => { | ||
const getToken = async () => { | ||
const { code } = qs.parse(location.search, { | ||
ignoreQueryPrefix: true, | ||
}); | ||
|
||
try { | ||
const response = await axios.get(`${URL}/login/google?code=${code}`); | ||
localStorage.setItem('token', response.data.data.jwt); | ||
|
||
axios.get(`${URL}/jwt`, { | ||
headers: { Authorization: 'Bearer ' + localStorage.getItem('token') }, | ||
}); | ||
history.push('/main'); | ||
} catch (error) { | ||
alert(error); | ||
history.push('/'); | ||
} | ||
}; | ||
|
||
getToken(); | ||
}, [location, history]); | ||
|
||
return <Main />; | ||
}; | ||
|
||
export default GoogleOauth; |
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,32 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import Modal from '../../../styles/molcules/Modal'; | ||
import Typos from '../../../styles/atoms/Typos'; | ||
import { ReactComponent as Downward } from '../../../icons/downward.svg'; | ||
|
||
const AssigneeFilter = () => { | ||
const assignees = new Set(['담당자가 없는 이슈']); | ||
return ( | ||
<div> | ||
<Modal | ||
options={assignees} | ||
exceptedDiv="filterTitle" | ||
type="text" | ||
innerTitle="담당자 필터"> | ||
<Text link sm> | ||
담당자 | ||
<Downward /> | ||
</Text> | ||
</Modal> | ||
</div> | ||
); | ||
}; | ||
|
||
const Text = styled(Typos)` | ||
color: ${props => props.theme.greyscale.label}; | ||
svg { | ||
margin: 2px 0 0 10px; | ||
} | ||
`; | ||
|
||
export default AssigneeFilter; |
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
Oops, something went wrong.