Skip to content

Commit 38b58ff

Browse files
committed
feat: solve lint check
1 parent 0a75dfb commit 38b58ff

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

fe_repo/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function App() {
3535

3636
const mainContainerStyle = {
3737
display: 'flex',
38-
flexDirection: 'column' as 'column',
38+
flexDirection: 'column' as const as 'column',
3939
height: '100vh',
4040
backgroundColor: '#f0f4f8', // Light pastel background
4141
padding: '20px',

fe_repo/src/pages/ChatBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const ChatBox = ({onSendMessage}: IChatBoxProps) => {
2424
borderWidth: '2px',
2525
padding: '16px',
2626
display: 'flex',
27-
alignItems: 'center' as 'center',
27+
alignItems: 'center' as const as 'center',
2828
backgroundColor: '#ffffff', // White background for chat input
2929
borderRadius: '8px',
3030
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',

fe_repo/src/pages/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const Content = ({messages}: IContentProps) => {
1818
borderWidth: '2px',
1919
padding: '16px',
2020
flex: 1,
21-
overflowY: 'auto' as 'auto',
21+
overflowY: 'auto' as const as 'auto',
2222
backgroundColor: '#ffffff', // White or off-white background
2323
borderRadius: '8px',
2424
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',

fe_repo/src/pages/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export const Header = () => {
33
borderWidth: '2px',
44
padding: '16px',
55
fontSize: '2rem',
6-
fontWeight: 'bold' as 'bold',
6+
fontWeight: 'bold' as const as 'bold',
77
backgroundColor: '#ffffff',
88
borderRadius: '8px',
99
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
10-
textAlign: 'center' as 'center',
10+
textAlign: 'center' as const as 'center',
1111
color: '#333', // Softer text color
1212
};
1313

0 commit comments

Comments
 (0)