Skip to content

Commit

Permalink
fix: sort by date and removed thing that made build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Oct 31, 2023
1 parent 534c225 commit 15cce42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/components/AddSourceModal/SourceStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import styled from 'styled-components'
import { Flex } from '~/components/common/Flex'
import { Text } from '~/components/common/Text'
import { TextInput } from '~/components/common/TextInput'
import { requiredRule } from '~/constants'

type Props = {
onNextStep: () => void
Expand All @@ -25,9 +24,6 @@ export const SourceStep: FC<Props> = ({ onNextStep, value }) => (
maxLength={50}
name="source"
placeholder="Paste your url here..."
rules={{
...requiredRule,
}}
/>
</Flex>
<Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Table: React.FC<TopicTableProps> = ({ data, showMuted, setSelectedTopic })
return (
<StyledTableRow key={i.topic}>
<StyledTableCell className="empty" />
<StyledTableCell>{i.topic.replace(/\n/g, '')}</StyledTableCell>
<StyledTableCell>{i.topic}</StyledTableCell>
<StyledTableCell>{i.edgeCount}</StyledTableCell>
<StyledTableCell>
{i.edgeList.map((topic) => (
Expand Down
4 changes: 2 additions & 2 deletions src/stores/useTopicsStore/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import create from 'zustand'
import { ALPHABETICALLY } from '~/components/SourcesTableModal/SourcesView/constants'
import { DATE } from '~/components/SourcesTableModal/SourcesView/constants'
import { TtopicsParams, getTopicsData } from '~/network/fetchSourcesData'
import { FetchTopicResponse, Topic, TopicFilter } from '~/types'

Expand All @@ -19,7 +19,7 @@ const defaultData: Omit<TopicsStore, 'setTopics' | 'setFilters' | 'terminate'> =
total: 0,
filters: {
muted: false,
sortBy: ALPHABETICALLY,
sortBy: DATE,
page: 0,
pageSize: 50,
},
Expand Down

0 comments on commit 15cce42

Please sign in to comment.