Skip to content

Commit

Permalink
Fix TextField styling
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Feb 20, 2024
1 parent ed7c23d commit 428cb1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
uses: pennlabs/shared-actions/.github/workflows/react-check.yaml@v0.1
with:
path: frontend
nodeVersion: 18.19.0
nodeVersion: 20.11.1

build-backend:
name: Build backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup- qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
Expand Down
1 change: 1 addition & 0 deletions frontend/components/ClubEditPage/ClubEditCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ export default function ClubEditCard({
key={i}
as={
{
text: TextField,
checkbox: CheckboxField,
html: RichTextField,
multiselect: SelectField,
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/FormComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ export const DateTimeField = useFieldWrapper(
return (
<DatePickerWrapper>
<DatePicker
className="input"
showTimeSelect
dateFormat="MMMM d, yyyy h:mm aa"
selected={Date.parse(value) || value}
placeholderText={placeholder}
{...other}
className="input"
onChange={(val) => {
setFieldValue(name, val)
}}
Expand Down Expand Up @@ -618,11 +618,11 @@ export const TextField = useFieldWrapper(

return (
<input
className={`input ${isError ? 'is-danger' : ''}`}
type={actualType}
value={value != null ? value.toString() : ''}
readOnly={readOnly ?? false}
{...other}
className={`input ${isError ? 'is-danger' : ''}`}
/>
)
},
Expand Down

0 comments on commit 428cb1d

Please sign in to comment.