mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
Add state to search route navigation
This commit is contained in:
@@ -10,9 +10,11 @@ import {
|
||||
} from 'react-icons/ri';
|
||||
import styled from 'styled-components';
|
||||
import { LibraryItem } from '/@/renderer/api/types';
|
||||
import { Button, MotionFlex, Text } from '/@/renderer/components';
|
||||
import { Button, Text } from '/@/renderer/components';
|
||||
import { Play, PlayQueueAddOptions } from '/@/renderer/types';
|
||||
|
||||
const Item = styled(Flex)``;
|
||||
|
||||
const ItemGrid = styled.div<{ height: number }>`
|
||||
display: grid;
|
||||
grid-auto-columns: 1fr;
|
||||
@@ -47,6 +49,8 @@ const StyledImage = styled.img`
|
||||
border-radius: 4px;
|
||||
`;
|
||||
|
||||
const ActionsContainer = styled(Flex)``;
|
||||
|
||||
interface LibraryCommandItemProps {
|
||||
handlePlayQueueAdd?: (options: PlayQueueAddOptions) => void;
|
||||
id: string;
|
||||
@@ -99,7 +103,7 @@ export const LibraryCommandItem = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<Flex
|
||||
<Item
|
||||
gap="xl"
|
||||
justify="space-between"
|
||||
style={{ height: '40px', width: '100%' }}
|
||||
@@ -141,7 +145,7 @@ export const LibraryCommandItem = ({
|
||||
</Text>
|
||||
</MetadataWrapper>
|
||||
</ItemGrid>
|
||||
<MotionFlex
|
||||
<ActionsContainer
|
||||
align="center"
|
||||
gap="sm"
|
||||
justify="flex-end"
|
||||
@@ -173,7 +177,7 @@ export const LibraryCommandItem = ({
|
||||
>
|
||||
<RiAddCircleFill />
|
||||
</Button>
|
||||
</MotionFlex>
|
||||
</Flex>
|
||||
</ActionsContainer>
|
||||
</Item>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user