Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions api/generated/openapi_gen.go

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

75 changes: 75 additions & 0 deletions view/next-project/package-lock.json

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

1 change: 1 addition & 0 deletions view/next-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"nuqs": "^2.2.3",
"pdf-lib": "^1.17.1",
"react": "^18.3.1",
"react-datepicker": "^8.3.0",
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.31.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import clsx from 'clsx';
import * as React from 'react';
import { useState } from 'react';

import { AddButton } from '../common';

interface Props {
className?: string;
children?: React.ReactNode;
}

const OpenEditModalButton = (props: Props) => {
const [showModal, setShowModal] = useState(false);
Copy link

Copilot AI May 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The state variable 'showModal' is set but never used in the component; consider removing it or integrating modal toggling logic if it was intended to control visibility.

Copilot uses AI. Check for mistakes.

return (
<>
<AddButton
className={clsx(props.className)}
onClick={() => {
setShowModal(true);
}}
>
{props.children}
</AddButton>
</>
);
};

export default OpenEditModalButton;
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Box, Table, Thead, Tbody, Tr, Th, Td, Text } from '@chakra-ui/react';

interface OtherTeacher {
building: string;
room: string;
name: string;
amount?: number;
}

interface Props {
teachers: OtherTeacher[];
}

const OtherBuildingsCard = ({ teachers }: Props) => (
<Box
p={4}
border='2px dashed #FF69B4'
borderRadius='md'
bg='#FFF0F6'
minW={0}
w='100%'
maxW='100%'
boxShadow='md'
>
<Text fontSize={{ base: 'md', md: 'lg' }} fontWeight='bold' color='#D72660' mb={2}>
その他
</Text>
<Table variant='simple' size='sm'>
<Thead>
<Tr>
<Th fontSize={{ base: 'xs', md: 'sm' }}>棟名</Th>
<Th fontSize={{ base: 'xs', md: 'sm' }}>居室</Th>
<Th fontSize={{ base: 'xs', md: 'sm' }}>教員名</Th>
<Th fontSize={{ base: 'xs', md: 'sm' }}>金額</Th>
</Tr>
</Thead>
<Tbody>
{teachers.map((t, i) => (
<Tr key={i}>
<Td fontSize={{ base: 'xs', md: 'sm' }}>{t.building}</Td>
<Td fontSize={{ base: 'xs', md: 'sm' }}>{t.room}</Td>
<Td fontSize={{ base: 'xs', md: 'sm' }}>{t.name}</Td>
<Td fontSize={{ base: 'xs', md: 'sm' }}>
{t.amount ? `¥${t.amount.toLocaleString()}` : ''}
</Td>
</Tr>
))}
</Tbody>
</Table>
</Box>
);

export default OtherBuildingsCard;
Loading