Skip to content

Commit 75aafd9

Browse files
Merge pull request #54 from iExecBlockchainComputing/fix/small-adjustment
Fix/small adjustment
2 parents 1705071 + b66ca08 commit 75aafd9

File tree

17 files changed

+95
-83
lines changed

17 files changed

+95
-83
lines changed
69.7 KB
Loading

src/assets/steps/lock_visual.png

58.9 KB
Loading

src/components/navBar/NavBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function NavBar() {
6262

6363
<Label
6464
htmlFor="dev-mode"
65-
className="flex items-center space-x-2 py-1"
65+
className="flex items-center space-x-2 py-1 text-white"
6666
>
6767
<Switch
6868
id="dev-mode"
@@ -72,7 +72,7 @@ export function NavBar() {
7272
<span>Dev Mode</span>
7373
</Label>
7474

75-
<hr className="border-grey-700 border-t" />
75+
<hr className="border-grey-600 border-t" />
7676

7777
<div className="mb-16">
7878
<Button
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import { LogOut } from 'react-feather';
2+
import { Link } from 'react-router-dom';
23
import { useLoginLogout } from '@/hooks/useLoginLogout';
34
import useUserStore from '@/stores/useUser.store';
5+
import iExecLogo from '../../assets/iexec-logo.svg';
46
import { AddressChip } from './AddressChip';
57

68
export function TopNavBar() {
79
const { isConnected, address } = useUserStore();
810
const { logout } = useLoginLogout();
911

1012
return (
11-
<>
13+
<div className="flex items-center justify-between pt-5 lg:pt-10">
14+
<Link to="/my-data" className="-m-2 flex items-center p-2 lg:invisible">
15+
<img src={iExecLogo} width="25" height="25" alt="iExec logo" />
16+
</Link>
1217
{isConnected && (
13-
<div className="flex w-full max-w-[1260px] items-center justify-end pt-5 pr-9 lg:pt-10 lg:pr-0">
18+
<div className="flex max-w-[1260px] items-center pr-10 lg:pr-0">
1419
<AddressChip address={address!} className="ml-6" />
1520
<button
1621
type="button"
@@ -21,6 +26,6 @@ export function TopNavBar() {
2126
</button>
2227
</div>
2328
)}
24-
</>
29+
</div>
2530
);
2631
}

src/components/ui/button.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const buttonVariants = cva(
1414
white: 'hover:bg-grey-400 bg-white text-black',
1515
danger: 'bg-[#BF3131] text-white hover:bg-[#BF3131]/40',
1616
outline: 'border-grey-50 border hover:bg-white/10 hover:text-white',
17-
discreet_outline:
18-
'border-grey-600 hover:bg-grey-800 border hover:text-white',
17+
discreet_outline: 'border-grey-600 hover:bg-grey-800 border text-white',
1918
chip: 'from-grey-500 hover:before:bg-background relative z-0 overflow-hidden bg-gradient-to-b to-transparent before:absolute before:inset-px before:-z-10 before:rounded-[29px] before:bg-[#14141a] before:duration-300',
2019
text: '',
2120
},

src/layouts/MainLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default function MainLayout() {
1414
return (
1515
<div className="flex">
1616
<NavBar />
17-
<div className="m:px-10 w-full px-6">
17+
<div className="m:px-10 mx-auto w-full max-w-[1260px] px-6">
1818
<TopNavBar />
19-
<div className="mt-10 mb-24 max-w-[1260px] flex-1">
19+
<div className="mt-10 mb-24 max-w-[1260px]">
2020
{!isConnected ? <ConnectWallet /> : <Outlet />}
2121
</div>
2222
</div>

src/modules/myData/protectedData/GrantAccessModal.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,17 @@ export default function GrantAccessModal({
204204
)}
205205
</Alert>
206206
)}
207+
<div className="mt-2 flex justify-center gap-5">
208+
<Button
209+
variant="outline"
210+
onClick={() => setSwitchingModalOpen(false)}
211+
>
212+
Cancel
213+
</Button>
214+
<Button type="submit" isLoading={grantAccessMutation.isPending}>
215+
Add User
216+
</Button>
217+
</div>
207218
<DocLink className="bg-grey-600 border-grey-500">
208219
dataprotector-sdk / Method called:{' '}
209220
<a
@@ -232,17 +243,6 @@ export default function GrantAccessModal({
232243
{'}'});
233244
</a>
234245
</DocLink>
235-
<div className="mt-2 flex justify-center gap-5">
236-
<Button
237-
variant="outline"
238-
onClick={() => setSwitchingModalOpen(false)}
239-
>
240-
Cancel
241-
</Button>
242-
<Button type="submit" isLoading={grantAccessMutation.isPending}>
243-
Add User
244-
</Button>
245-
</div>
246246
</form>
247247
</DialogContent>
248248
</Dialog>

src/modules/myData/protectedData/ProtectedDataDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function ProtectedDataDetails({
1515
<div className="grid gap-6 md:grid-cols-3">
1616
<div className="radial-bg before:bg-grey-800 md:before:bg-grey-900 rounded-20 relative z-0 flex flex-col gap-6 overflow-hidden p-8 before:absolute before:inset-px before:-z-10 before:rounded-[calc(20px-1px)]">
1717
<div className="z-30 grid gap-6">
18-
<div className="flex items-center gap-4">
18+
<div className="font-anybody flex items-center gap-4 font-extrabold">
1919
<div className="rounded-lg bg-yellow-300/10 p-2.5 text-yellow-300">
2020
<ProtectedDataIcon size={20} />
2121
</div>
@@ -39,7 +39,7 @@ export function ProtectedDataDetails({
3939
</div>
4040
<div className="radial-bg before:bg-grey-800 md:before:bg-grey-900 rounded-20 relative z-0 flex flex-col gap-6 overflow-hidden p-8 before:absolute before:inset-px before:-z-10 before:rounded-[calc(20px-1px)]">
4141
<div className="z-30 grid gap-6">
42-
<div className="flex items-center gap-4">
42+
<div className="font-anybody flex items-center gap-4 font-extrabold">
4343
<div className="rounded-lg bg-yellow-300/10 p-2.5 text-yellow-300">
4444
<User size={20} />
4545
</div>
@@ -63,7 +63,7 @@ export function ProtectedDataDetails({
6363
</div>
6464
<div className="radial-bg before:bg-grey-800 md:before:bg-grey-900 rounded-20 relative z-0 flex flex-col gap-6 overflow-hidden p-8 before:absolute before:inset-px before:-z-10 before:rounded-[calc(20px-1px)]">
6565
<div className="z-30 grid gap-6">
66-
<div className="flex items-center gap-4">
66+
<div className="font-anybody flex items-center gap-4 font-extrabold">
6767
<div className="rounded-lg bg-yellow-300/10 p-2.5 text-yellow-300">
6868
<Link size={20} />
6969
</div>

src/router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ export const router = createBrowserRouter(
4545
},
4646
],
4747
{
48-
basename: '/web3messaging', // Remplacez '/votre-basepath' par le chemin de base souhaité
48+
basename: '/web3messaging',
4949
}
5050
);

0 commit comments

Comments
 (0)