Skip to content

Commit

Permalink
fix: 데이터 크롤링 시 다시 크롤링하지 못하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Oct 24, 2023
1 parent c225a0a commit 039b801
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/ContentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const ContentModal = ({ isOpen, onClose }: Props) => {
_hover={{ bg: 'none', color: 'inherit' }}
_focus={{ bg: 'none', color: 'inherit' }}
_active={{ bg: 'none' }}
_focusVisible={{
boxShadow: 'none',
}}
_focusVisible={{ boxShadow: 'none' }}
_light={{ color: 'gray.600' }}
_dark={{ color: 'gray.400' }}
/>
</ModalHeader>
<Divider m="0" />
Expand Down Expand Up @@ -209,7 +209,7 @@ const ContentModal = ({ isOpen, onClose }: Props) => {
}
/>
<Spacer />
<Center cursor="pointer">
<Center cursor="pointer" onClick={refetch}>
<Text
fontSize="12px"
_light={{ color: 'gray.600' }}
Expand All @@ -218,11 +218,7 @@ const ContentModal = ({ isOpen, onClose }: Props) => {
>
{isLoading ? '불러오는 중...' : `${formatDate(ko, updateAt)} 업데이트`}
</Text>
<RefreshIcon
_light={{ color: 'gray.600' }}
_dark={{ color: 'gray.400' }}
onClick={refetch}
/>
<RefreshIcon _light={{ color: 'gray.600' }} _dark={{ color: 'gray.400' }} />
</Center>
</ModalFooter>
</ModalContent>
Expand Down
2 changes: 2 additions & 0 deletions src/components/PopoverOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const PopoverOptions = ({ triggerElement }: Props) => {
top="8px"
right="4px"
outline="none !important"
_light={{ color: 'gray.600' }}
_dark={{ color: 'gray.400' }}
/>
<Divider m="0" />
<PopoverBody p="12px">
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useGetContents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const useGetContents = (options: Options) => {
}

const refetch = () => {
if (isLoading) return
setIsLoading(true)
getData()
}
Expand Down

0 comments on commit 039b801

Please sign in to comment.