-
+
{days.map((day: number) => (
))}
-
+
)
},
)
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-const getStyles = (tokens: any) => ({
- buttons: {
- display: 'flex',
- flexWrap: 'wrap' as const,
- marginTop: tokens.Spacing.XSmall,
- },
- button: {
- width: '14.25%',
- },
-})
-
DayOfMonthPicker.displayName = 'DayOfMonthPicker'
diff --git a/src/components/GoBackButton.module.css b/src/components/GoBackButton.module.css
new file mode 100644
index 0000000000..778a6e2969
--- /dev/null
+++ b/src/components/GoBackButton.module.css
@@ -0,0 +1,19 @@
+.container:global(.MuiBox-root) {
+ flex-grow: 1;
+}
+
+.appBar:global(.MuiAppBar-root) {
+ background-color: var(--mui-palette-background-paper);
+ display: flex;
+}
+
+.toolbar:global(.MuiToolbar-root) {
+ left: 0;
+ max-width: 368px;
+ padding: 0 var(--spacing-2);
+ transform: translateX(-5%);
+}
+
+.button:global(.MuiIconButton-root) {
+ color: var(--mui-palette-text-primary);
+}
diff --git a/src/components/GoBackButton.tsx b/src/components/GoBackButton.tsx
index 7ed18fa92d..2be53df140 100644
--- a/src/components/GoBackButton.tsx
+++ b/src/components/GoBackButton.tsx
@@ -1,48 +1,42 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
import React, { forwardRef, useRef } from 'react'
-import PropTypes from 'prop-types'
-import { useTokens } from '@kyper/tokenprovider'
-import { IconButton } from '@mui/material'
-import { ChevronLeft } from '@kyper/icon/ChevronLeft'
+import { AppBar, Box, IconButton, Toolbar } from '@mui/material'
+import { Icon } from '@mxenabled/mxui'
import { __ } from 'src/utilities/Intl'
+import styles from 'src/components/GoBackButton.module.css'
interface GoBackButtonProps {
handleGoBack: () => void
+ shouldShowBackButton?: boolean
+ toolbarClassName?: string
}
export const GoBackButton = forwardRef