feat(MyShares): show information about own share security options (#720)
* Provide security information about owned shares * Add visitor count display for shares with max views * Add password protection indicator to shares table * Remove validation from MyShareSecurityDTO * center lock icon and add spacing * refactor: run formatter --------- Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -34,9 +34,10 @@ export type ShareMetaData = {
|
||||
isZipReady: boolean;
|
||||
};
|
||||
|
||||
export type MyShare = Share & {
|
||||
export type MyShare = Omit<Share, "hasPassword"> & {
|
||||
views: number;
|
||||
createdAt: Date;
|
||||
security: MyShareSecurity;
|
||||
};
|
||||
|
||||
export type MyReverseShare = {
|
||||
@@ -52,3 +53,8 @@ export type ShareSecurity = {
|
||||
maxViews?: number;
|
||||
password?: string;
|
||||
};
|
||||
|
||||
export type MyShareSecurity = {
|
||||
passwordProtected: boolean;
|
||||
maxViews: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user