Skip to content

Commit 7cf9577

Browse files
authored
🎨 Update theme (#666)
1 parent 4ef4b27 commit 7cf9577

File tree

15 files changed

+53
-53
lines changed

15 files changed

+53
-53
lines changed

frontend/src/components/Admin/AddUser.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,7 @@ const AddUser: React.FC<AddUserProps> = ({ isOpen, onClose }) => {
174174
</Flex>
175175
</ModalBody>
176176
<ModalFooter gap={3}>
177-
<Button
178-
bg="ui.main"
179-
color="white"
180-
_hover={{ opacity: 0.8 }}
181-
type="submit"
182-
isLoading={isSubmitting}
183-
>
177+
<Button variant="primary" type="submit" isLoading={isSubmitting}>
184178
Save
185179
</Button>
186180
<Button onClick={onClose}>Cancel</Button>

frontend/src/components/Admin/EditUser.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ const EditUser: React.FC<EditUserProps> = ({ user, isOpen, onClose }) => {
163163

164164
<ModalFooter gap={3}>
165165
<Button
166-
bg="ui.main"
167-
color="white"
168-
_hover={{ opacity: 0.8 }}
166+
variant="primary"
169167
type="submit"
170168
isLoading={isSubmitting}
171169
isDisabled={!isDirty}

frontend/src/components/Common/DeleteAlert.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@ const Delete: React.FC<DeleteProps> = ({ type, id, isOpen, onClose }) => {
8989
</AlertDialogBody>
9090

9191
<AlertDialogFooter gap={3}>
92-
<Button
93-
bg="ui.danger"
94-
color="white"
95-
_hover={{ opacity: 0.8 }}
96-
type="submit"
97-
isLoading={isSubmitting}
98-
>
92+
<Button variant="danger" type="submit" isLoading={isSubmitting}>
9993
Delete
10094
</Button>
10195
<Button

frontend/src/components/Common/Navbar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ const Navbar: React.FC<NavbarProps> = ({ type }) => {
2424
<Input type='text' placeholder='Search' fontSize={{ base: 'sm', md: 'inherit' }} borderRadius='8px' />
2525
</InputGroup> */}
2626
<Button
27-
bg="ui.main"
28-
color="white"
29-
_hover={{ opacity: 0.8 }}
27+
variant="primary"
3028
gap={1}
3129
fontSize={{ base: 'sm', md: 'inherit' }}
3230
onClick={type === 'User' ? addUserModal.onOpen : addItemModal.onOpen}

frontend/src/components/Common/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import SidebarItems from './SidebarItems'
2323

2424
const Sidebar: React.FC = () => {
2525
const queryClient = useQueryClient()
26-
const bgColor = useColorModeValue('white', '#1a202c')
27-
const textColor = useColorModeValue('gray', 'white')
28-
const secBgColor = useColorModeValue('ui.secondary', '#252d3d')
26+
const bgColor = useColorModeValue('ui.white', 'ui.dark')
27+
const textColor = useColorModeValue('ui.light', 'ui.white')
28+
const secBgColor = useColorModeValue('ui.secondary', 'ui.darkSlate')
2929
const currentUser = queryClient.getQueryData<UserOut>('currentUser')
3030
const { isOpen, onOpen, onClose } = useDisclosure()
3131
const { logout } = useAuth()

frontend/src/components/Common/SidebarItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface SidebarItemsProps {
1818

1919
const SidebarItems: React.FC<SidebarItemsProps> = ({ onClose }) => {
2020
const queryClient = useQueryClient()
21-
const textColor = useColorModeValue('ui.main', '#E2E8F0')
21+
const textColor = useColorModeValue('ui.main', 'ui.light')
2222
const bgActive = useColorModeValue('#E2E8F0', '#4A5568')
2323
const currentUser = queryClient.getQueryData<UserOut>('currentUser')
2424

frontend/src/components/Items/AddItem.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,7 @@ const AddItem: React.FC<AddItemProps> = ({ isOpen, onClose }) => {
103103
</ModalBody>
104104

105105
<ModalFooter gap={3}>
106-
<Button
107-
bg="ui.main"
108-
color="white"
109-
_hover={{ opacity: 0.8 }}
110-
type="submit"
111-
isLoading={isSubmitting}
112-
>
106+
<Button variant="primary" type="submit" isLoading={isSubmitting}>
113107
Save
114108
</Button>
115109
<Button onClick={onClose}>Cancel</Button>

frontend/src/components/Items/EditItem.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ const EditItem: React.FC<EditItemProps> = ({ item, isOpen, onClose }) => {
104104
</ModalBody>
105105
<ModalFooter gap={3}>
106106
<Button
107-
bg="ui.main"
108-
color="white"
109-
_hover={{ opacity: 0.8 }}
107+
variant="primary"
110108
type="submit"
111109
isLoading={isSubmitting}
112110
isDisabled={!isDirty}

frontend/src/components/UserSettings/ChangePassword.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface UpdatePasswordForm extends UpdatePassword {
2121
}
2222

2323
const ChangePassword: React.FC = () => {
24-
const color = useColorModeValue('gray.700', 'white')
24+
const color = useColorModeValue('inherit', 'ui.white')
2525
const showToast = useCustomToast()
2626
const {
2727
register,
@@ -114,9 +114,7 @@ const ChangePassword: React.FC = () => {
114114
)}
115115
</FormControl>
116116
<Button
117-
bg="ui.main"
118-
color="white"
119-
_hover={{ opacity: 0.8 }}
117+
variant="primary"
120118
mt={4}
121119
type="submit"
122120
isLoading={isSubmitting}

frontend/src/components/UserSettings/DeleteConfirmation.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ const DeleteConfirmation: React.FC<DeleteProps> = ({ isOpen, onClose }) => {
7979
</AlertDialogBody>
8080

8181
<AlertDialogFooter gap={3}>
82-
<Button
83-
bg="ui.danger"
84-
color="white"
85-
_hover={{ opacity: 0.8 }}
86-
type="submit"
87-
isLoading={isSubmitting}
88-
>
82+
<Button variant="danger" type="submit" isLoading={isSubmitting}>
8983
Confirm
9084
</Button>
9185
<Button

0 commit comments

Comments
 (0)