-
Notifications
You must be signed in to change notification settings - Fork 37
api bump v-3.2.1 #1089
api bump v-3.2.1 #1089
Changes from 4 commits
4b17dcb
3051906
17520bb
6637178
3bee8be
4df4ce4
da4f726
5bb3720
8b5716d
7434c7a
d764ab3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = function override(webpackConfig) { | ||
webpackConfig.module.rules.push({ | ||
test: /\.mjs$/, | ||
include: /node_modules/, | ||
type: "javascript/auto" | ||
}); | ||
|
||
return webpackConfig; | ||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -44,11 +44,13 @@ const EndorseTip = ({ | |||||||||
const [isCouncil, setIsCouncil] = useState(false); | ||||||||||
const [forceEndorse, setForceEndorse] = useState(false); | ||||||||||
const councilQueryresult = useGetCouncilMembersQuery(); | ||||||||||
const currentCouncil: string[] = []; | ||||||||||
const [currentCouncil, setCurrentCouncil] = useState<string[]>([]); | ||||||||||
const { api, isApiReady } = useContext(ApiPromiseContext); | ||||||||||
const { addresses } = useContext(UserDetailsContext); | ||||||||||
|
||||||||||
councilQueryresult.data?.councils?.[0]?.members?.forEach( member => {currentCouncil.push(member?.address);}); | ||||||||||
councilQueryresult.data?.councils?.[0]?.members?.forEach( member => { | ||||||||||
setCurrentCouncil([...currentCouncil, member?.address]); | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A
Suggested change
|
||||||||||
}); | ||||||||||
|
||||||||||
useEffect(() => { | ||||||||||
// it will iterate through all addresses | ||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,16 @@ | |
// of the Apache-2.0 license. See the LICENSE file for details. | ||
|
||
import React from 'react'; | ||
import { useParams } from 'react-router-dom'; | ||
import { useRouter } from 'src/hooks'; | ||
|
||
import Post from '../../components/Post/Post'; | ||
import { useBountyPostAndCommentsQuery } from '../../generated/graphql'; | ||
import FilteredError from '../../ui-components/FilteredError'; | ||
import Loader from '../../ui-components/Loader'; | ||
|
||
export default () => { | ||
const { id } = useParams(); | ||
const { query } = useRouter(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I did all these changes is because TS was complaining that " Another, maybe better way would be to keep using the |
||
const id = query['id'] as string; | ||
const idNumber = Number(id) || 0; | ||
const { data, error, refetch } = useBountyPostAndCommentsQuery({ variables: { 'id': idNumber } }); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads-up.
I bumped
simple-import-sort
, which resulted in lint error something like "cannot findsimple-import-sort/sort
rules".You will 100% get the same in the other projects when bumping it as well.