Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Ardito committed Apr 18, 2024
1 parent 8e8371a commit 611f300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/PassInteraction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ChildProps {
setAddPass: React.Dispatch<React.SetStateAction<boolean>>,
}

export const PassInteraction = ({selectedHolder, setScreen, setAddPass}: ChildProps) => {
export const PassInteraction = ({ selectedHolder, setScreen, setAddPass }: ChildProps) => {
return (
<div style={{ display: "flex", flexDirection: "column", gap: "5px", flex: 1 }}>
<Button disabled={!selectedHolder.id} label="Log Visit" onClick={(e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/screens/AddPass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const AddPass = ({ selectedHolder, setSelectedHolder, setAddPass }: Child
Amount Paid:
</div>
{formik.touched.amountPaid && formik.errors.amountPaid && (
<div style={{ color: 'red', display: 'inline-block'}}>{formik.errors.amountPaid}</div>
<div style={{ color: 'red', display: 'inline-block' }}>{formik.errors.amountPaid}</div>
)}
<InputText
className="form-text-input p-inputtext-sm"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface ChildProps {
setSelectedHolder: React.Dispatch<HolderAction>,
}

export function Dashboard({setScreen, selectedHolder, setSelectedHolder}: ChildProps) {
export function Dashboard({ setScreen, selectedHolder, setSelectedHolder }: ChildProps) {
const [search, setSearch] = useState("");
const [addPass, setAddPass] = useState(false);
const [passholders, setPassholders] = useState<HolderData[]>([]);
Expand Down

0 comments on commit 611f300

Please sign in to comment.