Skip to content

Commit c733096

Browse files
committed
fixed that items are not aligned centrally in the page header line components, and the time table will show the missign theme warning only one
1 parent b7387d4 commit c733096

File tree

3 files changed

+69
-43
lines changed

3 files changed

+69
-43
lines changed

library/src/components/timetable/LPTimeTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ export default function LPTimeTable<
145145
G extends TimeTableGroup,
146146
I extends TimeSlotBooking,
147147
>({ timeTableMessages, ...props }: LPTimeTableProps<G, I>) {
148-
if (!getCurrentTheme()) {
148+
const [showedWarning, setShowedWarning] = useState(false)
149+
if (!showedWarning && !getCurrentTheme()) {
149150
console.warn(
150151
"LPTimeTable - no theme set, LPTable required Atlassian.design token to have the color scheme set correctly, call setGlobalTheme({}) from @atlassian/tokens to set the theme.",
151152
)
153+
setShowedWarning(true)
152154
}
153155

154156
return (

library/src/layouting/PageLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const PageHeaderLine = styled.div`
3434
width: 100%;
3535
gap: 4px;
3636
margin-bottom: 8px;
37+
align-items: center;
3738
`
3839

3940
const PageBody = styled.div`

package-lock.json

Lines changed: 65 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)