Skip to content

Commit 0f3e253

Browse files
committed
cleaned up files
1 parent 4421561 commit 0f3e253

File tree

8 files changed

+7
-2
lines changed

8 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
npm-debug.log*
2020
yarn-debug.log*
2121
yarn-error.log*
22-
22+
*-lock
2323
.idea
24+
sass-cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/components/grid/grid.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class GridComponent extends React.Component<GridComponentProps, GridCompo
6363
(
6464
<SeatComponent
6565
key={seatIDs[i]}
66+
id={seatIDs[i]}
6667
type={this.state.seats[seatIDs[i]].type}
6768
occupied={this.state.seats[seatIDs[i]].occupied}
6869
/>
@@ -83,6 +84,7 @@ export class GridComponent extends React.Component<GridComponentProps, GridCompo
8384
(
8485
<SeatComponent
8586
key={seatIDs[i]}
87+
id={seatIDs[i]}
8688
type={this.state.seats[seatIDs[i]].type}
8789
occupied={this.state.seats[seatIDs[i]].occupied}
8890
/>

src/components/grid/seat.component.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ import { SVGS } from '../../assets/svgs.react';
44
interface SeatComponentProps {
55
type: string;
66
occupied: boolean;
7+
id?: string;
78
}
89

910
export const SeatComponent = (props: SeatComponentProps) => {
1011
const occupiedStyle: string = props.occupied
1112
? 'occupied'
1213
: '';
1314

15+
// todo make contract with hardware
1416
return (
1517
<div
1618
className="seat-component"
1719
>
18-
{props.type === 'handicap'
20+
{ props.type === 'handicap'
1921
? (
2022
<div
2123
className={'icon-wrapper ' + occupiedStyle}

0 commit comments

Comments
 (0)