Skip to content

Commit

Permalink
Automatic build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Sep 18, 2023
1 parent 822e08f commit 4834aa6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export const userHasRole = (bountyRoles: any[], userRoles: any[], role: Roles):
};

export const toCapitalize = (word: string): string => {
if(!word.length) return word;
if (!word.length) return word;

const wordString = word.split(' ');
const capitalizeStrings = wordString.map((w: string) => w[0].toUpperCase() + w.slice(1));

Expand Down
14 changes: 9 additions & 5 deletions frontend/app/src/people/widgetViews/OrganizationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,12 @@ const OrganizationDetails = (props: { close: () => void; org: Organization | und
)}
{(isOrganizationAdmin || userHasRole(bountyRoles, userRoles, 'VIEW REPORT')) && (
<>
<ViewHistoryText onClick={() => setIsOpenBudgetHistory(true)}>Budget history</ViewHistoryText>
<ViewHistoryText onClick={() => setIsOpenHistory(true)}>Payment history</ViewHistoryText>
<ViewHistoryText onClick={() => setIsOpenBudgetHistory(true)}>
Budget history
</ViewHistoryText>
<ViewHistoryText onClick={() => setIsOpenHistory(true)}>
Payment history
</ViewHistoryText>
</>
)}
</DataCount>
Expand Down Expand Up @@ -563,8 +567,8 @@ const OrganizationDetails = (props: { close: () => void; org: Organization | und
style={
item.name === 'github_description' && !values.ticket_url
? {
display: 'none'
}
display: 'none'
}
: undefined
}
/>
Expand Down Expand Up @@ -756,7 +760,7 @@ const OrganizationDetails = (props: { close: () => void; org: Organization | und
visible={isOpenBudgetHistory}
style={{
height: '100%',
flexDirection: 'column',
flexDirection: 'column'
}}
envStyle={{
marginTop: isMobile ? 64 : 0,
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/people/widgetViews/OrganizationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ const Organizations = (props: { person: Person }) => {
style={
item.name === 'github_description' && !values.ticket_url
? {
display: 'none'
}
display: 'none'
}
: undefined
}
/>
Expand Down
Loading

0 comments on commit 4834aa6

Please sign in to comment.