Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
Signed-off-by: david <[email protected]>
  • Loading branch information
daywiss committed Nov 21, 2023
1 parent 583b1bc commit 009c059
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 43 deletions.
2 changes: 1 addition & 1 deletion snapshot-spaces
5 changes: 3 additions & 2 deletions src/components/AvatarToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ withDefaults(
}"
alt="Token logo"
@error="
($event.target as HTMLImageElement).src =
`https://cdn.stamp.fyi/token/eth:${address}?s=100`
(
$event.target as HTMLImageElement
).src = `https://cdn.stamp.fyi/token/eth:${address}?s=100`
"
/>
</template>
4 changes: 2 additions & 2 deletions src/components/ButtonFollow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ watch(
loadingFollow !== ''
? null
: canFollow
? clickFollow(space.id)
: (modalTermsOpen = true)
? clickFollow(space.id)
: (modalTermsOpen = true)
"
>
<span v-if="!isFollowing"> {{ $t('join') }} </span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SidebarUnreadIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ defineProps<{ space: string; hasUnseen: boolean }>();
$route.params.key === space
? '!h-[20px] bg-skin-link'
: hasUnseen
? 'bg-skin-text group-hover:h-[10px]'
: 'group-hover:h-[10px] '
? 'bg-skin-text group-hover:h-[10px]'
: 'group-hover:h-[10px] '
]"
class="absolute left-[-4px] h-[8px] w-[8px] rounded-full transition-all duration-300 group-hover:bg-skin-link"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SpaceProposalPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function clickVote() {
!web3.value.account
? (modalAccountOpen.value = true)
: !termsAccepted.value && props.space.terms
? (modalTermsOpen.value = true)
: (modalOpen.value = true);
? (modalTermsOpen.value = true)
: (modalOpen.value = true);
}
function reloadProposal() {
Expand Down
11 changes: 4 additions & 7 deletions src/composables/useEmailSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ function useEmailSubscriptionComposable() {

const clientSubscriptions = computed({
get() {
return subscriptionTypes.reduce(
(acc, type) => {
acc[type] = apiSubscriptions.value.includes(type);
return acc;
},
{} as Record<SubscriptionType, boolean>
);
return subscriptionTypes.reduce((acc, type) => {
acc[type] = apiSubscriptions.value.includes(type);
return acc;
}, {} as Record<SubscriptionType, boolean>);
},
set(value) {
apiSubscriptions.value = Object.entries(value)
Expand Down
4 changes: 2 additions & 2 deletions src/composables/useNetworksFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function useNetworksFilter() {
a.name.toLowerCase().includes('testnet')
? 1
: b.name.toLowerCase().includes('testnet')
? -1
: 0
? -1
: 0
);

return networksArrayTestnetworksLast;
Expand Down
11 changes: 4 additions & 7 deletions src/composables/useStatement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@ export function useStatement() {

if (!response) throw new Error('No statements found');

const newStatements = response.reduce(
(acc, statement) => {
acc[statement.delegate.toLowerCase()] = statement;
return acc;
},
{} as Record<string, Statement>
);
const newStatements = response.reduce((acc, statement) => {
acc[statement.delegate.toLowerCase()] = statement;
return acc;
}, {} as Record<string, Statement>);
statements.value = { ...statements.value, ...newStatements };
} catch (e) {
console.error(e);
Expand Down
12 changes: 4 additions & 8 deletions src/composables/useTreasury.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ export function useTreasury() {

if (treasuryAssets.value[address]) return;
const balances = await getTokenBalances(address, chainId)
.then(
balances =>
balances?.filter(
balance =>
tokenListContractAddresses.value?.includes(
balance.contract_address
)
)
.then(balances =>
balances?.filter(balance =>
tokenListContractAddresses.value?.includes(balance.contract_address)
)
)
.catch(() => []);
if (balances) treasuryAssets.value[address] = balances;
Expand Down
5 changes: 3 additions & 2 deletions src/helpers/lensResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ class LensResolver {
async resolveAddresses(
addresses: Address[]
): Promise<Record<Address, Handle>> {
const addressesWithHandles =
await this.getAvailableHandleMapping(addresses);
const addressesWithHandles = await this.getAvailableHandleMapping(
addresses
);
const tokenMapping = await this.getTokensMapping(addressesWithHandles);
return this.getHandleMapping(tokenMapping);
}
Expand Down
5 changes: 1 addition & 4 deletions src/plugins/progress/components/CustomBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,7 @@ a.button {
width: 10px;
height: 12px;
border: 2px solid transparent;
box-shadow:
0 0 0 2px,
inset -2px 0 0,
inset 2px 0 0;
box-shadow: 0 0 0 2px, inset -2px 0 0, inset 2px 0 0;
border-bottom-left-radius: 1px;
border-bottom-right-radius: 1px;
margin-top: 4px;
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/safeSnap/utils/umaModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ const findProposalGql = async (
const request = `
{
proposals(where:{proposalHash:"${params.proposalHash}",explanation:"${
params.explanation
}",optimisticGovernor:"${params.ogAddress.toLowerCase()}"}){
params.explanation
}",optimisticGovernor:"${params.ogAddress.toLowerCase()}"}){
id
executed
assertionId
Expand Down
4 changes: 2 additions & 2 deletions src/views/SpaceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const spaceKey = computed(
() => aliasedSpace.value || domain || route.params.key
);
const space = computed(
() => extendedSpaces.value?.find(s => s.id === spaceKey.value.toLowerCase())
const space = computed(() =>
extendedSpaces.value?.find(s => s.id === spaceKey.value.toLowerCase())
);
const { isMessageVisible, setMessageVisibility } =
Expand Down

0 comments on commit 009c059

Please sign in to comment.