Skip to content

Commit

Permalink
chore: debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Dec 15, 2023
1 parent 2ecafaa commit c20908c
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 168 deletions.
4 changes: 2 additions & 2 deletions src/containers/editor/PassportEditor/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export const updatePassport = (): void => {

const innerRules = {}
forEach((key) => {
innerRules[key] = false
innerRules[key as string] = false
}, toJS(keys(JSON.parse(allModeratorRules))))

forEach((key) => {
innerRules[key] = true
innerRules[key as string] = true
}, toJS(selectedRules))

const rules = JSON.stringify({
Expand Down
60 changes: 0 additions & 60 deletions src/widgets/CommunityList/index.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions src/widgets/CommunityList/styles/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/widgets/CommunityList/tests/index.test.ts

This file was deleted.

34 changes: 17 additions & 17 deletions src/widgets/FaqList/Collapse/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ type TProps = {
}

const Banner: FC<TProps> = ({ menuOptions, setOpenedIndexes, sections }) => {
const foldAll = setOpenedIndexes([])
const foldAll = () => setOpenedIndexes([])
const unFoldAll = useCallback(
() => setOpenedIndexes(pluck('index', sections)),
[sections, setOpenedIndexes],
)

const handleMenu = useCallback(
(key) => {
switch (key) {
case 'fold': {
return foldAll()
}
case 'unfold': {
return unFoldAll()
}

default: {
console.log('todo')
}
const handleMenu = (key) => {
switch (key) {
case 'fold': {
foldAll()
return
}
},
[foldAll, unFoldAll],
)
case 'unfold': {
unFoldAll()
return
}

default: {
console.log('todo')
return
}
}
}

return (
<Wrapper>
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/FiltersMenu/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export const tags2Options = (tags: TTag[]): TMenu => {
const groupedTags = groupByKey(tags, 'group')
const formated = []

// @ts-ignore
forEach((group, index) => {
const icon = group === '城市' ? `${ICON_CMD}/navi/location.svg` : `${ICON_CMD}/navi/topic.svg`

formated.push({
id: index,
title: group,
Expand Down
35 changes: 0 additions & 35 deletions src/widgets/UserBrief/CommunityEditorInfo.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/widgets/UserBrief/VolunteersBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FC, memo } from 'react'

import type { TPagedCommunities } from '@/spec'
import CommunityList from '@/widgets/CommunityList'

import { Wrapper, Title, List } from './styles/volunteers_badge'

Expand All @@ -13,15 +12,6 @@ const VolunteersBadge: FC<TProps> = ({ communities }) => {
return (
<Wrapper>
<Title>社区志愿者</Title>
<List>
<CommunityList
items={communities.entries}
size={18}
bottom={2}
right={8}
totalCount={communities.totalCount}
/>
</List>
</Wrapper>
)
}
Expand Down
2 changes: 1 addition & 1 deletion utils/themes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const rainbowLink = (primaryColor: TColorName, rollbackForBlack = 'link')
*/
export const rainbow = (color: TColorName | string, darkThemeOverWriteKey = ''): string => {
if (color === COLOR_NAME.BLACK) {
return !!darkThemeOverWriteKey
return darkThemeOverWriteKey
? theme(`${darkThemeOverWriteKey as TFlatThemeKey}`)
: theme(`rainbow.${camelize(color)}` as TFlatThemeKey)
}
Expand Down

0 comments on commit c20908c

Please sign in to comment.