Skip to content

Commit

Permalink
some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrecursion committed May 19, 2024
1 parent 7578f13 commit ddca5cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/frontend/src/components/CopyToClipboard.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { useState } from 'react'
import { darken } from '@mui/system'
import { Box, Collapse, Tooltip, Typography } from '@mui/material'
import Button from '@mui/material/Button'
import { Button } from './CustomComponents.tsx'
import { AssignmentTurnedIn, ContentPaste } from '@mui/icons-material'
import { t } from 'i18next'
import theme from "../Theme.ts";

interface CopyToClipboardProps {
invitationLink: string
Expand Down Expand Up @@ -42,21 +44,20 @@ export const CopyToClipboard = ({ invitationLink }: CopyToClipboardProps) => {
>
<Button
onClick={copyToClipboard}
variant={'contained'}
sx={{
height: 40,
maxWidth: 500,
minWidth: 200,
backgroundColor: 'background.default',
backgroundColor: 'secondary.main',
color: 'text.primary',
textTransform: 'none',
borderRadius: 2,
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
padding: 0,
gap: 1,
'&:hover': {
backgroundColor: 'secondary.main',
backgroundColor: darken(theme.palette.secondary.main,0.2)
},
}}
>
Expand Down
1 change: 1 addition & 0 deletions frontend/frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export const Header = ({ variant, title }: Props) => {
sx={{
color: 'background.default',
paddingTop: 1,
textTransform: 'none',
}}
>
Logout
Expand Down
1 change: 1 addition & 0 deletions frontend/frontend/src/pages/subjectsPage/SubjectsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export function SubjectsPage() {
)}
</Box>
<Box
padding={'10px'}
display="flex"
flexDirection="row"
justifyContent="space-between"
Expand Down

0 comments on commit ddca5cc

Please sign in to comment.