Skip to content

Commit

Permalink
feat: 출연진 팀 순서 변경 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Puterism committed Nov 12, 2024
1 parent 49bc28f commit 9e30416
Show file tree
Hide file tree
Showing 12 changed files with 423 additions and 91 deletions.
92 changes: 92 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"qrcode.react": "^3.1.0",
"react": "^18.2.0",
"react-daum-postcode": "^3.1.3",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.50.0",
Expand Down
6 changes: 5 additions & 1 deletion apps/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import './index.css';

import { QueryClientProvider } from '@boolti/api';
import { BooltiUIProvider } from '@boolti/ui';
import { DndProvider } from 'react-dnd'
import { HTML5Backend } from 'react-dnd-html5-backend'
import { setDefaultOptions } from 'date-fns';
import { ko } from 'date-fns/locale';
import {
Expand Down Expand Up @@ -155,7 +157,9 @@ const routes: RouteObject[] = [
<QueryClientProvider>
<BooltiUIProvider>
<LazyMotion features={domAnimation}>
<Outlet />
<DndProvider backend={HTML5Backend}>
<Outlet />
</DndProvider>
</LazyMotion>
</BooltiUIProvider>
</QueryClientProvider>
Expand Down
24 changes: 22 additions & 2 deletions apps/admin/src/components/ShowCastInfo/ShowCastInfo.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,32 @@ const Header = styled.div`
align-items: center;
border-radius: 8px 8px 0px 0px;
border: 1px solid ${({ theme }) => theme.palette.grey.g20};
color: ${({ theme }) => theme.palette.grey.g90};
${({ theme }) => theme.typo.sh2};
padding: 24px 28px;
&:last-child {
border-radius: 8px;
}
`;

const HeaderNameWrapper = styled.div`
display: flex;
align-items: center;
gap: 12px;
`

const Handle = styled.div`
display: inline-flex;
align-items: center;
justify-content: center;
color: ${({ theme }) => theme.palette.grey.g40};
cursor: move;
`

const Name = styled.span`
color: ${({ theme }) => theme.palette.grey.g90};
${({ theme }) => theme.typo.sh2};
`;

const EditButton = styled(Button)`
padding: 13px 18px;
& > svg {
Expand Down Expand Up @@ -118,6 +135,9 @@ const CollapseButton = styled.button`
export default {
Container,
Header,
HeaderNameWrapper,
Handle,
Name,
Cast,
CollapseButton,
EditButton,
Expand Down
Loading

0 comments on commit 9e30416

Please sign in to comment.