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 20, 2023
1 parent 6507824 commit 4a9863a
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface styledProps {
}

// @ts-ignore
const S = styled(CreatableSelect) <styledProps>`
const S = styled(CreatableSelect)<styledProps>`
background:#ffffff00;
border: 1px solid ${(p: any) => p.color && p.color.grayish.G750};
color: ${(p: any) => p.color && p.color.pureBlack};
Expand Down
8 changes: 4 additions & 4 deletions frontend/app/src/components/common/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface styledProps {
}

// @ts-ignore
const S = styled(Select) <styledProps>`
const S = styled(Select)<styledProps>`
background:#ffffff00;
border: 1px solid ${(p: any) => p.color && p.color.grayish.G750};
color: ${(p: any) => p.color && p.color.pureBlack};
Expand Down Expand Up @@ -68,9 +68,9 @@ export default function Sel(props: SelProps) {

const opts = options
? options.map((o: any) => ({
value: o.value,
label: o.label
}))
value: o.value,
label: o.label
}))
: [];

return (
Expand Down
62 changes: 31 additions & 31 deletions frontend/app/src/components/common/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface styleProps {
color?: any;
}

const S = styled(EuiSuperSelect as any) <styleProps>`
const S = styled(EuiSuperSelect as any)<styleProps>`
background: ${(p: any) => p?.color && p.color.pureWhite};
border: 1px solid ${(p: any) => p?.color && p?.color.grayish.G750};
color: ${(p: any) => p?.color && p?.color.pureBlack};
Expand All @@ -34,40 +34,40 @@ export default function Select(props: SelProps) {

const opts = options
? options.map((o: any) => ({
value: o.value,
inputDisplay: o.label,
dropdownDisplay: (
<>
<p
style={{
color: color.text2,
fontSize: '14px',
paddingLeft: '0px',
margin: 0,
fontFamily: 'Barlow',
fontWeight: '500',
lineHeight: '32px',
letterSpacing: '0.01em'
}}
>
{o.label}
</p>
{o.description && (
<EuiText
size="s"
color="subdued"
value: o.value,
inputDisplay: o.label,
dropdownDisplay: (
<>
<p
style={{
padding: 0,
color: color.text2,
fontSize: '14px',
paddingLeft: '0px',
margin: 0,
fontSize: '12px'
fontFamily: 'Barlow',
fontWeight: '500',
lineHeight: '32px',
letterSpacing: '0.01em'
}}
>
<p className="euiTextColor--subdued">{o.description}</p>
</EuiText>
)}
</>
)
}))
{o.label}
</p>
{o.description && (
<EuiText
size="s"
color="subdued"
style={{
padding: 0,
margin: 0,
fontSize: '12px'
}}
>
<p className="euiTextColor--subdued">{o.description}</p>
</EuiText>
)}
</>
)
}))
: [];

return (
Expand Down
10 changes: 5 additions & 5 deletions frontend/app/src/components/form/inputs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ interface fieldEnvProps {
isTextField?: any;
}

export const FieldEnv = styled(EuiFormRow as any) <fieldEnvProps>`
export const FieldEnv = styled(EuiFormRow as any)<fieldEnvProps>`
border: ${(p: any) =>
p.border === 'bottom'
? ''
: p?.isTop
? `1px solid ${p?.color && p.color.pureWhite}`
: `1px solid ${p?.color && p.color.grayish.G600}`};
? `1px solid ${p?.color && p.color.pureWhite}`
: `1px solid ${p?.color && p.color.grayish.G600}`};
border-bottom: ${(p: any) => (p.border === 'bottom' ? `1px solid ${p.color.grayish.G600}` : '')};
box-sizing: border-box;
border-radius: ${(p: any) => (p.border === 'bottom' ? '0px' : '4px')};
Expand Down Expand Up @@ -95,7 +95,7 @@ export const FieldEnv = styled(EuiFormRow as any) <fieldEnvProps>`
}
}
`;
export const FieldText = styled(EuiFieldText) <styledProps>`
export const FieldText = styled(EuiFieldText)<styledProps>`
background-color: ${(p: any) => p?.color && p.color.pureWhite} !important;
max-width:900px;
background:${(p: any) => p?.color && p.color.pureWhite} !important;
Expand Down Expand Up @@ -136,7 +136,7 @@ margin-top: ${(p: any) => (p?.isTextField ? '2px' : '')};
`;
export const FieldTextArea = styled(EuiTextArea) <styledProps>`
export const FieldTextArea = styled(EuiTextArea)<styledProps>`
// min-height: ${(p: any) => p?.height && p.height} !important;
// max-height: ${(p: any) => p?.width && p.height} !important;
width: ${(p: any) => p?.color && p.color.width};
Expand Down
22 changes: 12 additions & 10 deletions frontend/app/src/people/main/FocusView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const B = styled.div<BProps>`
overflow-y: auto;
box-sizing: border-box;
${EnvWithScrollBar({
thumbColor: '#5a606c',
trackBackgroundColor: 'rgba(0,0,0,0)'
})}
thumbColor: '#5a606c',
trackBackgroundColor: 'rgba(0,0,0,0)'
})}
`;
function FocusedView(props: FocusViewProps) {
const {
Expand Down Expand Up @@ -103,9 +103,9 @@ function FocusedView(props: FocusViewProps) {

const userOrganizations = main.organizations.length
? main.organizations.map((org: Organization) => ({
label: toCapitalize(org.name),
value: org.uuid
}))
label: toCapitalize(org.name),
value: org.uuid
}))
: [];

function isNotHttps(url: string | undefined) {
Expand Down Expand Up @@ -211,7 +211,7 @@ function FocusedView(props: FocusViewProps) {
if (shouldCloseModal) {
closeModal();
}
return
return;
}

try {
Expand Down Expand Up @@ -293,7 +293,9 @@ function FocusedView(props: FocusViewProps) {
// if there is a selected index, fill in values
if (selectedBounty && selectedIndex >= 0) {
const wanted = selectedBounty.body;
initialValues.estimated_completion_date = wanted?.estimated_completion_date ? moment(wanted?.estimated_completion_date) : '';
initialValues.estimated_completion_date = wanted?.estimated_completion_date
? moment(wanted?.estimated_completion_date)
: '';

if (wanted.type) {
const thisDynamicSchema = dynamicSchemasByType[wanted.type];
Expand Down Expand Up @@ -378,8 +380,8 @@ function FocusedView(props: FocusViewProps) {
extraHTML={
ui.meInfo.verification_signature
? {
twitter: `<span>Post this to your twitter account to verify:</span><br/><strong>Sphinx Verification: ${ui.meInfo.verification_signature}</strong>`
}
twitter: `<span>Post this to your twitter account to verify:</span><br/><strong>Sphinx Verification: ${ui.meInfo.verification_signature}</strong>`
}
: {}
}
/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/people/widgetViews/OrganizationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ const OrganizationDetails = (props: { close: () => void; org: Organization | und
style={
item.name === 'github_description' && !values.ticket_url
? {
display: 'none'
}
display: 'none'
}
: undefined
}
/>
Expand Down
3 changes: 1 addition & 2 deletions frontend/app/src/store/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ export class MainStore {
body.id = j.response.id;
}
}

await this.getSelf(body);
uiStore.setToasts([
{
Expand All @@ -1269,7 +1269,6 @@ export class MainStore {
}
]);
}

} catch (e) {
console.log('Error saveProfile: ', e);
}
Expand Down
16 changes: 8 additions & 8 deletions frontend/packrd/packed-packr.go

Large diffs are not rendered by default.

0 comments on commit 4a9863a

Please sign in to comment.