Skip to content

Commit

Permalink
style: Update import paths and header styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Oct 14, 2024
1 parent aaa24ca commit 75637dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ use std::time::Duration;

fn build_and_run_app(app: AppState) {
tauri::Builder::default()
.plugin(tauri_plugin_log::Builder::new().build())
.plugin(tauri_plugin_autostart::init())
.plugin(tauri_plugin_store::Builder::new().build())
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
let handle = app.handle().clone();
let state = AppState::new();
Expand Down
16 changes: 9 additions & 7 deletions src/layout/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from "react";
import React from 'react';

import { Badge, Group, Header as MantineHeader } from "@mantine/core";
import { getVersion } from "@tauri-apps/api/app";
import usePlatform from '@/hooks/usePlatform';
import { Badge, Group, Header as MantineHeader } from '@mantine/core';
import { getVersion } from '@tauri-apps/api/app';

import NavigationHistory from "./navigation-history";
import usePlatform from "@/hooks/usePlatform";
import NavigationHistory from './navigation-history';

//TODO: Fix navigation history
const Header = () => {
const { appHeader } = usePlatform();
const [version, setVersion] = React.useState<string>("");
Expand All @@ -21,8 +22,9 @@ const Header = () => {
style={{ backgroundColor: "transparent", backdropFilter: "blur(15px)", WebkitBackdropFilter: "blur(15px)" }}
onMouseDown={onClick}
>
<Group position="apart" align="center" pl={8} pr={8} pt={8}>
<NavigationHistory />
<Group position="center" align="" pl={8} pr={8} pt={14}>
{/* <NavigationHistory /> */}
<div />
<Badge color="teal" variant="dot">
Pachtop {version && `v${version}`}
</Badge>
Expand Down

0 comments on commit 75637dd

Please sign in to comment.