-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from wafflestudio/dev
Merge dev branch into main
- Loading branch information
Showing
8 changed files
with
261 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,53 @@ | ||
import '@/tailwind.css'; | ||
|
||
import { | ||
createTheme, | ||
StyledEngineProvider, | ||
ThemeProvider, | ||
} from '@mui/material/styles'; | ||
import { StrictMode } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { BrowserRouter } from 'react-router-dom'; | ||
|
||
import { App } from './App'; | ||
|
||
const root = document.getElementById('root'); | ||
const rootElement = document.getElementById('root'); | ||
if (rootElement === null) throw new Error('Root element not found'); | ||
|
||
if (root === null) throw new Error('Root element not found'); | ||
// Material-UI 테마 생성 및 Portal 컨테이너 설정 | ||
const theme = createTheme({ | ||
components: { | ||
MuiPopover: { | ||
defaultProps: { | ||
container: rootElement, | ||
}, | ||
}, | ||
MuiPopper: { | ||
defaultProps: { | ||
container: rootElement, | ||
}, | ||
}, | ||
MuiDialog: { | ||
defaultProps: { | ||
container: rootElement, | ||
}, | ||
}, | ||
MuiModal: { | ||
defaultProps: { | ||
container: rootElement, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
createRoot(root).render( | ||
createRoot(rootElement).render( | ||
<StrictMode> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
<StyledEngineProvider injectFirst> | ||
<ThemeProvider theme={theme}> | ||
<BrowserRouter> | ||
<App /> | ||
</BrowserRouter> | ||
</ThemeProvider> | ||
</StyledEngineProvider> | ||
</StrictMode>, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ['index.html', './src/**/*.{ts,tsx}'], | ||
important: '#root', | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
corePlugins: { | ||
preflight: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"root":["./src/App.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/common/LogoIcon.tsx","./src/components/common/LogoText.tsx","./src/components/common/Modal/BaseModal.tsx","./src/components/home/FilterBar/index.tsx","./src/components/home/Listings/ListingItem.tsx","./src/components/home/Listings/index.tsx","./src/components/home/Topbar/index.tsx","./src/components/home/Topbar/Search/SearchBar.tsx","./src/components/home/Topbar/Search/modals/CalendarModal.tsx","./src/components/home/Topbar/Search/modals/GuestsModal.tsx","./src/components/home/Topbar/Search/modals/LocationModal.tsx","./src/components/home/context/SearchContext.tsx","./src/components/roomdetail/Info.tsx","./src/components/roomdetail/Reservation.tsx","./src/mock/listings.tsx","./src/mock/mockRoom.ts","./src/routes/ApiTest.tsx","./src/routes/Auth.tsx","./src/routes/Home.tsx","./src/routes/Redirect.tsx","./src/routes/roomDetail.tsx","./src/types/listing.tsx","./src/types/roomType.ts","./vite.config.ts"],"version":"5.7.2"} |
Oops, something went wrong.