Skip to content

Commit

Permalink
Annotate return type on TabSet
Browse files Browse the repository at this point in the history
  • Loading branch information
xplato committed May 16, 2024
1 parent a67efcd commit 527234c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .storybook/seed-fake.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export const seedFake = (db) => {
noise_threshold_id: 2,
noise_threshold_name: 'Active Hours',
})

db.addEvent({
device_id: device7.device_id,
workspace_id: ws2.workspace_id,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ui/TabSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function TabSet<TabType extends string>({
tabs,
activeTab,
onTabChange,
}: TabSetProps<TabType>) {
}: TabSetProps<TabType>): JSX.Element {
const [highlightStyle, setHighlightStyle] = useState<HighlightStyle>({
left: 0,
width: 140,
Expand Down
78 changes: 39 additions & 39 deletions src/styles/_noise-sensor.scss
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
@use './colors';

@mixin all {
.seam-noise-sensor-activity-list {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.seam-noise-sensor-activity-list {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.seam-noise-sensor-event-item {
width: 100%;
min-height: 64px;
padding: 12px 8px 12px 16px;
border-bottom: 1px solid colors.$divider-stroke-light;
display: grid;
grid-template-columns: 0.5fr 1fr 1fr;
gap: 18px;
}
.seam-noise-sensor-event-item {
width: 100%;
min-height: 64px;
padding: 12px 8px 12px 16px;
border-bottom: 1px solid colors.$divider-stroke-light;
display: grid;
grid-template-columns: 0.5fr 1fr 1fr;
gap: 18px;
}

.seam-noise-sensor-event-item-column-wrap {
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
gap: 18px;
}
.seam-noise-sensor-event-item-column-wrap {
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: row;
gap: 18px;
}

.seam-noise-sensor-event-item-datetime-wrap {
color: colors.$text-gray-1;
font-size: 14px;
line-height: 134%;
}
.seam-noise-sensor-event-item-datetime-wrap {
color: colors.$text-gray-1;
font-size: 14px;
line-height: 134%;
}

.seam-noise-sensor-event-item-context-label {
color: colors.$text-default;
font-size: 14px;
line-height: 134%;
}
.seam-noise-sensor-event-item-context-label {
color: colors.$text-default;
font-size: 14px;
line-height: 134%;
}

.seam-noise-sensor-event-item-context-sublabel {
color: colors.$text-gray-2;
font-size: 14px;
line-height: 134%;
}
}
.seam-noise-sensor-event-item-context-sublabel {
color: colors.$text-gray-2;
font-size: 14px;
line-height: 134%;
}
}

0 comments on commit 527234c

Please sign in to comment.