ui(server/files): add validation for duplicate directory names

This commit is contained in:
Matthew Penner 2021-07-24 11:32:31 -06:00
parent be011906e6
commit 26438fa034
3 changed files with 17 additions and 10 deletions

View file

@ -58,11 +58,9 @@ const inputStyle = css<Props>`
${tw`opacity-75`};
}
&:not(.ignoreReadOnly):read-only {
${props => props.isLight ? light : css`&:not(.ignoreReadOnly):read-only {
${tw`border-neutral-800 bg-neutral-900`};
}
${props => props.isLight && light};
}`};
${props => props.hasError && tw`text-red-100 border-red-400 hover:border-red-300`};
`;